aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/template_test.php
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/14948] Adjust calls for twig and phpunit updatesMarc Alexander2019-05-091-2/+2
| | | | PHPBB3-14948
* [ticket/15746] Adjust tests after twig updateMarc Alexander2018-08-211-1/+1
| | | | PHPBB3-15746
* [ticket/14994] Refactor template->assign_block_varjaviexin2017-11-011-0/+40
| | | | | | | | | | 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
* Merge remote-tracking branch 'javiexin/ticket/15068' into 3.2.xMarc Alexander2017-05-291-0/+31
|\
| * Merge branch 'ticket/15068' of https://github.com/javiexin/phpbb into ↵javiexin2017-05-211-5/+321
| |\ | | | | | | | | | ticket/15068
| * | [ticket/15068] Add template vars retrieval from the template objectjaviexin2017-05-211-0/+31
| | | | | | | | | | | | | | | | | | Added tests. PHPBB3-15068
* | | Merge pull request #4612 from javiexin/ticket/14950Marc Alexander2017-04-151-1/+50
|\ \ \ | |_|/ |/| | | | | [ticket/14950] Add possibility to delete a template block
| * | [ticket/14950] Add possibility to delete a template blockjaviexin2017-01-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new mode to alter_block_array to allow for the deletion of a certain block of template variables. The selection method is the same as for the other modes for alter_block_array. The passed in vararray is ignored, and an out of bounds index is considered an error. Added tests for the new function, fixed. PHPBB3-14950
| * | [ticket/14950] Add possibility to delete a template blockjaviexin2017-01-081-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new mode to alter_block_array to allow for the deletion of a certain block of template variables. The selection method is the same as for the other modes for alter_block_array. The passed in vararray is ignored, and an out of bounds index is considered an error. Added tests for the new function, fixed. PHPBB3-14950
| * | [ticket/14950] Add possibility to delete a template blockjaviexin2017-01-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new mode to alter_block_array to allow for the deletion of a certain block of template variables. The selection method is the same as for the other modes for alter_block_array. The passed in vararray is ignored, and an out of bounds index is considered an error. Added tests for the new function, fixed. PHPBB3-14950
| * | [ticket/14950] Add possibility to delete a template blockjaviexin2017-01-071-0/+42
| |/ | | | | | | | | | | | | | | | | | | Adds a new mode to alter_block_array to allow for the deletion of a certain block of template variables. The selection method is the same as for the other modes for alter_block_array. The passed in vararray is ignored, and an out of bounds index is considered an error. Added tests for the new function. PHPBB3-14950
* | Merge branch '3.1.x' into 3.2.xMarc Alexander2017-02-231-2/+129
|\ \
| * \ Merge pull request #4605 from javiexin/ticket/14943Marc Alexander2017-02-231-2/+129
| |\ \ | | | | | | | | | | | | [ticket/14943] Fix template loop access by index
| | * | [ticket/14943] Fix template loop access by indexjaviexin2017-01-071-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows inserting elements in a loop specified as 'outer[3].inner'. This was coded, but malfunctioning. Name incorrectly set on insert. Added more tests. PHPBB3-14943
| | * | [ticket/14943] Fix template loop access by indexjaviexin2017-01-071-2/+119
| | |/ | | | | | | | | | | | | | | | | | | | | | Allows inserting elements in a loop specified as 'outer[3].inner'. This was coded, but malfunctioning. Name incorrectly set on insert. Added tests. PHPBB3-14943
* | | Merge branch '3.1.x' into 3.2.xMarc Alexander2017-02-191-0/+37
|\ \ \ | |/ /
| * | [ticket/14944] Add possibility to search for template loop indexes by keyjaviexin2017-01-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new function to the template interface, and implements it in the context class. The function returns the ordinal index for a specified key, with the same structure that the key for alter_block_array. Reuses same code. Remove unneeded references, do nothing for int keys. Check out of bounds or wrong blockname errors. Added tests. Remove default parameter value. PHPBB3-14944
| * | [ticket/14944] Add possibility to search for template loop indexes by keyjaviexin2017-01-081-0/+37
| |/ | | | | | | | | | | | | | | | | | | Adds a new function to the template interface, and implements it in the context class. The function returns the ordinal index for a specified key, with the same structure that the key for alter_block_array. Reuses same code. Remove unneeded references, do nothing for int keys. Check out of bounds or wrong blockname errors. Added tests. PHPBB3-14944
* | [ticket/14576] Move common required files to bootstrapMatt Friedman2016-03-311-1/+0
| | | | | | | | PHPBB3-14576
* | [ticket/13132] Enable twig expressions testsNicofuma2015-03-051-6/+12
| | | | | | | | PHPBB3-13132
* | [ticket/13132] Twig: Add loops content to the root contextTristan Darricau2015-03-051-1/+148
| | | | | | | | PHPBB3-13132
* | [ticket/10388] Update testsMatt Friedman2015-01-291-1/+1
|/ | | | PHPBB3-10388
* [ticket/12781] Add testsTristan Darricau2014-06-271-0/+7
| | | | PHPBB3-12781
* [ticket/12594] Remove @package tags and update file headersYuriy Rusko2014-05-271-3/+7
| | | | PHPBB3-12594
* [ticket/12382] Event loop nesting inclusion applies to regular includes tooNils Adermann2014-05-031-1/+0
| | | | PHPBB3-12382
* [ticket/12382] Mark broken nested loop with include as incompleteJoas Schilling2014-04-141-1/+8
| | | | PHPBB3-12382
* [ticket/12382] Add template test for subloops inside includesJoas Schilling2014-04-121-0/+10
| | | | PHPBB3-12382
* [ticket/7580] Add test for IF {VAR} is defined in templatesMatt Friedman2014-03-161-0/+7
| | | | | | | | | | 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-131-0/+7
| | | | PHPBB3-10288
* [ticket/12224] Add assign_block_vars_array() test.rxu2014-03-101-0/+34
| | | | | | Add tests, also change return value to null. PHPBB3-12224
* [ticket/11943] Throw an exception if DEFINE is setup improperlyNathan Guse2013-11-091-0/+8
| | | | PHPBB3-11943
* [ticket/11943] Add test for DEFINE $VAR = falseNathan Guse2013-11-041-1/+1
| | | | PHPBB3-11943
* [ticket/11816] Fix multiple parenthesis as well before $VARs in templatesNathan Guse2013-09-191-1/+1
| | | | PHPBB3-11816
* [ticket/11843] Added newlines and included numbers in the DEFINE vars testrechosen2013-09-131-1/+1
| | | | | | | | 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-1/+1
| | | | | | | | 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-1/+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-1/+1
| | | | | | | | | | | | Use lazy operators and use stricter validation PHPBB3-11828
* | Merge branch 'develop' of github.com:phpbb/phpbb3 into ticket/11816Nathan Guse2013-09-061-2/+9
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # 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-1/+1
| | | | | | | | PHPBB3-11812
| * Merge remote-tracking branch 'EXreaction/ticket/11724' into developJoas Schilling2013-08-301-0/+7
| |\ | | | | | | | | | | | | | | | | | | * 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/+7
| | | | | | | | | | | | PHPBB3-11724
| * | Merge branch 'develop' of github.com:phpbb/phpbb3 into ticket/11628Nathan Guse2013-08-281-16/+16
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # By Bruno Ais (42) and others # Via Joas Schilling (39) and others * 'develop' of github.com:phpbb/phpbb3: (157 commits) [ticket/11803] Revert POLL_MAX_OPTIONS min value to 0 [ticket/11799] Send anti abuse headers in "new password" emails. [ticket/11792] Add functional test for var lang_set_ext of core.user_setup [ticket/11804] Remove </li> from overall_header which was not open [ticket/11802] replace $browser with $user->browser [ticket/11801] removed some whitespace and added missing semi colon's in css [ticket/11792] Add performance remark to core.user_setup event PHPDoc [ticket/11792] Add variable 'lang_set_ext' to event core.user_setup [ticket/11789] Remove inline color in memberlist_view [ticket/11800] Fix scripts variable in subsilver simple_footer [ticket/11800] Fix JavaScript in simple_footer.html [ticket/11800] Remove forum_fn from memberlist_search.html [ticket/11796] Replace pagination with pagination.html [ticket/11794] Add missing array element commas to docs/coding-guidelines.html [ticket/11775] Fix doc blocks syntax [ticket/11775] Remove spaces at line ends [ticket/11789] Remove colors from HTML code [ticket/11784] Remove naming redundancy for event listeners [ticket/11775] Split test into multiple steps [ticket/11777] Fix new test for loop variables in extension template listeners ... Conflicts: phpBB/install/index.php phpBB/install/install_update.php
| * | | [ticket/11628] Remove template_path option on set_custom_styleNathaniel Guse2013-07-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was set to default 'template/' to append template/ to all the paths, but every location was actually just setting it to '' to not append anything. So removed the option entirely (additional paths can be appended to the paths being sent to the function already) PHPBB3-11628
| * | | [ticket/11628] Remove third parameter ($names) from set_custom_styleNathaniel Guse2013-07-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was basically duplicating functionality. $names would be used if not empty, else array($name) would be used. Merged functionality into the first argument PHPBB3-11628
| * | | [ticket/11628] Remove phpbb_style (move methods to phpbb_template)Nathaniel Guse2013-07-241-1/+1
| | |/ | |/| | | | | | | PHPBB3-11628
* | | [ticket/11816] !$DOESNT_EXIST testNathan Guse2013-09-061-1/+1
| | | | | | | | | | | | PHPBB3-11816
* | | [ticket/11816] Test !$DEFINITIONNathan Guse2013-09-021-1/+1
| | | | | | | | | | | | PHPBB3-11816
* | | [ticket/11816] Fix define/loop checks in IF statements containing parenthesisNathan Guse2013-08-291-1/+1
| |/ |/| | | | | PHPBB3-11816
* | [ticket/11701] Fix loops var checkNathaniel Guse2013-07-231-16/+16
|/ | | | PHPBB3-11701
* Merge remote-tracking branch 'EXreaction/ticket/11718' into developAndreas Fischer2013-07-231-1/+1
|\ | | | | | | | | | | | | | | | | * 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