aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/template_test.php
Commit message (Collapse)AuthorAgeFilesLines
* [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
| * [ticket/11718] Quick test for fixes in ELSEIFNathaniel Guse2013-07-191-1/+1
| | | | | | | | PHPBB3-11718
* | [ticket/11707] Twig DEFINE not working as expectedNathaniel Guse2013-07-191-1/+1
|/ | | | PHPBB3-11707
* [ticket/11664] Stop creating php.html file in root path in testsNathaniel Guse2013-07-121-1/+1
| | | | | | Also includephp_absolute.html PHPBB3-11664
* [feature/twig] Add simple test to make sure Twig filters/tags are workingNathan Guse2013-07-081-0/+7
| | | | PHPBB3-11598
* [feature/twig] Add template tests for S_NUM_ROWS and S_BLOCK_NAMENathan Guse2013-07-051-1/+32
| | | | PHPBB3-11598
* [feature/twig] Add template test for ===, !==Nathan Guse2013-07-051-4/+18
| | | | PHPBB3-11598
* [feature/twig] Add test to make sure nested loops get the correct S_ROW_COUNTNathaniel Guse2013-07-041-0/+7
| | | | PHPBB3-11598
* [feature/twig] template->cachepath is now private, missed checking testsNathaniel Guse2013-07-021-1/+3
| | | | PHPBB3-11598
* [feature/twig] Move test_php back to template_testNathaniel Guse2013-07-021-0/+16
| | | | | | | | Was originally moved because I thought that a new test file might mean a new instance and the memory would be cleared, fixing the original problem, but that isn't true and it was fixed another way. PHPBB3-11598
* [feature/twig] Fix template_test.phpNathaniel Guse2013-07-011-68/+19
| | | | | | | Various tests were broken completely, and some things such as whitespace changed with Twig PHPBB3-11598
* [feature/twig] Remove duplicate test callsNathaniel Guse2013-06-241-15/+2
| | | | PHPBB3-11598
* [ticket/11482] Unit tests for advanced DEFINEVjacheslav Trushkin2013-04-101-0/+14
| | | | | | Unit tests for advanced DEFINE and ENDDEFINE PHPBB3-11482
* [ticket/11323] Enable tests for inclusion of defined variablesMarc Alexander2013-02-191-3/+0
| | | | PHPBB3-11323
* Merge PR #1194 branch 'develop-olympus' into developOleg Pudeyev2013-01-131-1/+19
|\ | | | | | | | | * develop-olympus: [ticket/11323] Add tests for inclusion of defined variables
| * [ticket/11323] Add tests for inclusion of defined variablesMarc Alexander2013-01-141-1/+16
| | | | | | | | | | | | | | | | | | This adds 2 tests for the template engine. The test using include_define_variable.html will test if a defined variable, which was defined with another template variable, can be used to include a file. The second test will do the same inside a loop using a loop variable. PHPBB3-11323
| * [ticket/11159] static public is the currently approved order.Oleg Pudeyev2012-11-061-2/+2
| | | | | | | | PHPBB3-11159
* | [ticket/10970] Paths of the form {FOO}/a/{BAR}/b parsed correctlyFyorl2012-07-081-0/+7
| | | | | | | | | | | | | | | | | | | | A new method to handle this type of path was added and compile_tag_include, compile_tag_include_php and compile_tag_include_js were modified to use it appropriately. Tests were added for these three macros also. PHPBB3-10970
* | [ticket/10800] Changing template paths in testsVjacheslav Trushkin2012-04-291-1/+1
| | | | | | | | | | | | Changing template paths in tests from absolute to relative PHPBB3-10800
* | [ticket/10733] Removing static from data providersVjacheslav Trushkin2012-04-011-2/+2
| | | | | | | | | | | | Removing static from data provider functions PHPBB3-10733
* | [feature/merging-style-components] Updating test casesVjacheslav Trushkin2012-03-151-2/+2
| | | | | | | | | | | | Updating code in test cases for new template classes. PHPBB3-10632
* | [feature/append_var] Adding test caseVjacheslav Trushkin2012-03-081-0/+36
| | | | | | | | | | | | Adding test case for append_var PHPBB3-10666
* | Merge branch 'develop-olympus' into developAndreas Fischer2012-01-021-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | * develop-olympus: [ticket/9916] Changing header in non-distributed files [ticket/9916] Changing coding guidelines license [ticket/9916] Updating License in the header Conflicts: tests/mock/cache.php