aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/templates
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/14994] Refactor template->assign_block_varjaviexin2017-11-011-0/+3
| | | | | | | | | | Refactor assign_block_var to use the same block selection mechanism as is used in alter_block_array. This allows creating new blocks at any position in the template structure, not only on the last block. Allows selecting a block as outer[2].middle. Added tests. PHPBB3-14994
* [ticket/13132] Enable twig expressions testsNicofuma2015-03-053-4/+15
| | | | PHPBB3-13132
* [ticket/13132] Twig: Add loops content to the root contextTristan Darricau2015-03-0516-2/+181
| | | | PHPBB3-13132
* [ticket/13133] Add unit testsTristan Darricau2014-10-091-2/+9
| | | | PHPBB3-13133
* [ticket/12781] Add testsTristan Darricau2014-06-271-0/+1
| | | | PHPBB3-12781
* [ticket/12382] Event loop nesting inclusion applies to regular includes tooNils Adermann2014-05-031-2/+2
| | | | PHPBB3-12382
* [ticket/12382] Add template test for subloops inside includesJoas Schilling2014-04-122-0/+9
| | | | PHPBB3-12382
* [ticket/7580] Add test for IF {VAR} is defined in templatesMatt Friedman2014-03-161-0/+4
| | | | | | | | | | http://tracker.phpbb.com/browse/PHPBB3-7580 This test demonstrates that is possible to test if a variable exists and then use it if it does, similar to using isset(), but in template/twig syntax. <!— IF {VAR} is defined —>{VAR}<!— ENDIF —> PHPBB3-7580
* [ticket/10288] Test to make sure included templates have proper variable scopeNathan Guse2014-03-132-0/+5
| | | | PHPBB3-10288
* [ticket/11943] New line at EOF for define_error.htmlNathan Guse2013-11-111-1/+1
| | | | PHPBB3-11943
* [ticket/11943] Forgot template file for testNathan Guse2013-11-091-0/+2
| | | | PHPBB3-11943
* [ticket/11943] Add test for DEFINE $VAR = falseNathan Guse2013-11-041-0/+6
| | | | PHPBB3-11943
* [ticket/11816] Fix multiple parenthesis as well before $VARs in templatesNathan Guse2013-09-191-0/+3
| | | | PHPBB3-11816
* [ticket/11843] Added newlines and included numbers in the DEFINE vars testrechosen2013-09-131-0/+4
| | | | | | | | Per suggestion of nickvergessen, I added newlines in the DEFINE variables with underscores test. Now if the test fails, it's easier to spot which part is failing. Also added a test for DEFINE variables containing numbers. PHPBB3-11843
* [ticket/11843] Add checking DEFINE variables with underscores to template_testrechosen2013-09-131-0/+2
| | | | | | | | To prevent the underscore in DEFINE variables from being forgotten again, the template tests now test INCLUDEing a file based on the contents of a DEFINE variable with underscores in it. PHPBB3-11843
* Merge branch 'develop' of github.com:phpbb/phpbb3 into ticket/11816Nathan Guse2013-09-121-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # By Joseph Warner (187) and others # Via Nathan Guse (6) and others * 'develop' of github.com:phpbb/phpbb3: (195 commits) [ticket/11828] Fix greedy operators in lexer [ticket/11835] Fix ucp_auth_link adding in migration [prep-release-3.0.12] Remove changelog entry for ticket that was not resolved. [ticket/develop/11832] Fix path detection [feature/oauth] Fix tabindex [ticket/9550] Add the core.viewtopic_post_rowset_data event to viewtopic.php [ticket/11829] Use report_closed to determine status in MCP report_details [feature/oauth] Fix bug on ucp_auth_link related to error display [feature/oauth] More small fixes [feature/oauth] More minor changes from review [feature/oauth] Fix small bug introduced by update in OAuth library [feature/oauth] Fix small issues on ucp pages [feature/oauth] Fix typo in OAuth logout method [feature/oauth] Make token storage service ignorant [feature/oauth] Update oauth::logout() to use clearAllTokens() [feature/oauth] Update storage implementation due to inteface change [feature/oauth] Update lusitanian/oauth to stable branch [ticket/11822] Use namespace lookup order for asset loading [feature/oauth] Update comment on oauth service exception [feature/oauth] Forgot to remove placeholder comment ... Conflicts: phpBB/phpbb/template/twig/lexer.php tests/template/template_test.php
| * [ticket/11828] Fix greedy operators in lexerNathan Guse2013-09-121-0/+1
| | | | | | | | | | | | Use lazy operators and use stricter validation PHPBB3-11828
* | Merge branch 'develop' of github.com:phpbb/phpbb3 into ticket/11816Nathan Guse2013-09-062-0/+4
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # By David King (16) and others # Via David King (13) and others * 'develop' of github.com:phpbb/phpbb3: (67 commits) [ticket/11825] Move schema_data.php into includes/ instead of phpbb/ [ticket/11215] Remove unnecessary comment [ticket/11755] MySQL upgrader out of date [prep-release-3.0.12] Update Changelog for 3.0.12-RC3 release. [prep-release-3.0.12] Bumping version number for 3.0.12-RC3. [ticket/11823] Set up nginx server to match PHP files with characters after .php [ticket/11812] Fix empty define [ticket/11818] Update Symfony dependencies to 2.3.* [ticket/11791] Load adm/ events from styles/adm/event/ [ticket/11215] Fix helper_url_test.php tests [ticket/11215] Add newline back to .htaccess, fix wording [ticket/11215] Update comment in .htaccess [ticket/11215] Uncomment rewrite rules in .htaccess [ticket/11215] Make controller helper url() method use correct format [ticket/11215] Add commented-out URL rewrite capability to .htaccess [ticket/11821] Fix comma usage next to "You are receiving this notification". [ticket/11769] Allow using 0 as poster name [ticket/11769] Allow '0' as username [ticket/11215] Use new URL structure for controllers [ticket/11215] Everything appears to be working... ... Conflicts: phpBB/phpbb/template/twig/lexer.php tests/template/template_test.php
| * [ticket/11812] Fix empty defineNathan Guse2013-09-021-0/+2
| | | | | | | | PHPBB3-11812
| * Merge remote-tracking branch 'EXreaction/ticket/11724' into developJoas Schilling2013-08-301-0/+2
| |\ | | | | | | | | | | | | | | | | | | * EXreaction/ticket/11724: [ticket/11724] Handle ELSE IF separately [ticket/11724] Replace spaces with tabs [ticket/11724] Support "ELSE IF" and "ELSEIF" in the same way
| | * [ticket/11724] Support "ELSE IF" and "ELSEIF" in the same wayNathan Guse2013-07-271-0/+2
| | | | | | | | | | | | PHPBB3-11724
* | | [ticket/11816] !$DOESNT_EXIST testNathan Guse2013-09-061-0/+3
| | | | | | | | | | | | PHPBB3-11816
* | | [ticket/11816] Test !$DEFINITIONNathan Guse2013-09-021-0/+3
| | | | | | | | | | | | PHPBB3-11816
* | | [ticket/11816] Fix define/loop checks in IF statements containing parenthesisNathan Guse2013-08-291-0/+3
|/ / | | | | | | PHPBB3-11816
* | [ticket/11701] Fix loops var checkNathaniel Guse2013-07-236-38/+38
|/ | | | PHPBB3-11701
* Merge remote-tracking branch 'EXreaction/ticket/11718' into developAndreas Fischer2013-07-231-0/+5
|\ | | | | | | | | | | | | | | | | * EXreaction/ticket/11718: [ticket/11718] Quick test for fixes in ELSEIF [ticket/11718] Twig lexer only correcting statements in IF, not ELSEIF Conflicts: tests/template/template_test.php
| * [ticket/11718] Quick test for fixes in ELSEIFNathaniel Guse2013-07-191-0/+5
| | | | | | | | PHPBB3-11718
* | [ticket/11707] Twig DEFINE not working as expectedNathaniel Guse2013-07-191-0/+2
|/ | | | PHPBB3-11707
* Merge pull request #1519 from cyberalien/ticket/11647Nathan Guse2013-07-131-5/+3
|\ | | | | Fix INCLUDEJS URLs handling
| * [ticket/11647] Always use &amp; for URLsVjacheslav Trushkin2013-07-111-4/+2
| | | | | | | | | | | | | | Remove code for URLs separated with ; Add test case for mix of & and &amp; in URLs PHPBB3-11647
| * [ticket/11647] Fix tests for INCLUDEJSVjacheslav Trushkin2013-07-111-1/+1
| | | | | | | | PHPBB-11647
* | [ticket/11388] Add newlines at EOFNathaniel Guse2013-07-112-2/+2
| | | | | | | | PHPBB3-11388
* | [ticket/11388] INCLUDECSSNathaniel Guse2013-07-112-0/+3
|/ | | | PHPBB3-11388
* [ticket/11388] INCLUDEJS test for //(url)Nathaniel Guse2013-07-111-0/+2
| | | | PHPBB3-11388
* [ticket/11388] Fixing includejs testNathaniel Guse2013-07-101-21/+36
| | | | | | | | | Changed expected output to file?(any supplied argument string)&asset_version =($config['asset_version'])#(any supplied anchor string) Testing lines one at a time to make checking them easier. PHPBB3-11388
* Merge remote-tracking branch ↵Nathaniel Guse2013-07-101-1/+14
|\ | | | | | | | | | | | | | | | | 'remotes/cyberalien/feature/twig/includejs_tests' into feature/twig # By Vjacheslav Trushkin # Via Vjacheslav Trushkin * remotes/cyberalien/feature/twig/includejs_tests: [feature/twig] Unit tests for includejs
| * [feature/twig] Unit tests for includejsVjacheslav Trushkin2013-07-101-1/+14
| | | | | | | | PHPBB3-11598
* | [feature/twig] Add simple test to make sure Twig filters/tags are workingNathan Guse2013-07-082-0/+13
|/ | | | PHPBB3-11598
* [feature/twig] Add template tests for S_NUM_ROWS and S_BLOCK_NAMENathan Guse2013-07-051-2/+2
| | | | PHPBB3-11598
* [feature/twig] Add template test for ===, !==Nathan Guse2013-07-051-0/+8
| | | | PHPBB3-11598
* [feature/twig] Add test to make sure nested loops get the correct S_ROW_COUNTNathaniel Guse2013-07-041-0/+6
| | | | PHPBB3-11598
* [feature/twig] Fix includejs testNathaniel Guse2013-07-021-1/+1
| | | | PHPBB3-11598
* [feature/twig] Changing INCLUDEJS behavior slightlyNathaniel Guse2013-07-011-6/+6
| | | | | | | Automatically parsing inline variables the same way it is done for INCLUDE, INCLUDEPHP PHPBB3-11598
* [feature/twig] Fix template_test.phpNathaniel Guse2013-07-015-9/+6
| | | | | | | Various tests were broken completely, and some things such as whitespace changed with Twig PHPBB3-11598
* [feature/twig] Correct includejs testNathaniel Guse2013-06-241-6/+6
| | | | PHPBB3-11598
* [feature/twig] Delete invalid constructs template testNathaniel Guse2013-06-242-2/+0
| | | | | | | | Invalid tags is no longer a valid test (invalid tags are ignored) Twig contains tests for loading files, so we should not need to test this PHPBB3-11598
* Merge remote-tracking branch 'remotes/cyberalien/ticket/11482' into developNathan Guse2013-05-204-2/+25
|\ | | | | | | | | | | | | | | | | # By Vjacheslav Trushkin # Via Vjacheslav Trushkin * remotes/cyberalien/ticket/11482: [ticket/11482] Use double quotes for code [ticket/11482] Unit tests for advanced DEFINE [ticket/11482] Implementation of advanced DEFINE tag
| * [ticket/11482] Unit tests for advanced DEFINEVjacheslav Trushkin2013-04-104-2/+25
| | | | | | | | | | | | Unit tests for advanced DEFINE and ENDDEFINE PHPBB3-11482
* | [ticket/11435] Mark extension spacing test as incompleteNathaniel Guse2013-04-301-1/+1
| | | | | | | | | | | | | | | | This test fails until 11435 is fixed Add newlines at EOF PHPBB3-11435
* | [ticket/11435] Create test to make sure template/event output is equalNathan Guse2013-04-251-0/+6
|/ | | | PHPBB3-11435