aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template
Commit message (Collapse)AuthorAgeFilesLines
* [feature/twig] Add test to make sure nested loops get the correct S_ROW_COUNTNathaniel Guse2013-07-042-0/+13
| | | | PHPBB3-11598
* [feature/twig] template->cachepath is now private, missed checking testsNathaniel Guse2013-07-022-2/+6
| | | | PHPBB3-11598
* [feature/twig] Move test_php back to template_testNathaniel Guse2013-07-022-30/+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] Should compare to $this->test_path rather than hardcoded pathNathaniel Guse2013-07-021-6/+6
| | | | PHPBB3-11598
* [feature/twig] Fix includejs testNathaniel Guse2013-07-022-7/+7
| | | | PHPBB3-11598
* [feature/twig] Fix template test caseNathaniel Guse2013-07-021-1/+1
| | | | PHPBB3-11598
* [feature/twig] Remove resource locator dependency from templateNathaniel Guse2013-07-013-3/+3
| | | | PHPBB3-11598
* [feature/twig] Fix template/template_php_test.phpNathaniel Guse2013-07-011-1/+10
| | | | | | | | | | Must create a template file in the cache to load as this causes errors otherwise. The problem was that Twig builds template files into classes, which are always stored in PHP memory after being loaded. Because of this, Twig would never recompile a template that was already compiled on the same page load (so switching enable PHP on/off in two tests would not work). PHPBB3-11598
* [feature/twig] Fix includephp_from_subdir_test.phpNathaniel Guse2013-07-012-5/+7
| | | | 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] PHP test moved to a separate fileNathaniel Guse2013-07-011-0/+21
| | | | | | | This had to be done because cached template files are available in memory, so Twig doesn't ever reparse a template on the same page load PHPBB3-11598
* [feature/twig] Fix template_test.phpNathaniel Guse2013-07-017-88/+38
| | | | | | | Various tests were broken completely, and some things such as whitespace changed with Twig PHPBB3-11598
* [feature/twig] Going back to Twig's handling of cache file names for nowNathaniel Guse2013-06-251-1/+1
| | | | | | My method was not working correctly, will work on it more later. PHPBB3-11598
* [feature/twig] Fixing template events test (and behavior)Nathaniel Guse2013-06-251-11/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | According to the test, template event behavior was never correct. Only ONE template event file is supposed to be included from EACH extension. As it was before, EVERY matching template event file from each extension was included (this was how it was designed). E.g. Event call in prosilver "foo" Extension has template "foo" in prosilver AND all foo from all would be included, then foo from prosilver would be included This was clearly not designed correctly as only the most specific event file from each extension should be loaded, otherwise events could only ever be put in a single style tree (either only all, or only prosilver and subsilver2 and any style that inherits from neither of those). Otherwise the events would be duplicated on output (which is clearly not desirable). The Twig behavior already was correct as I designed it, so only the one most specific template event file found would be included from each extension. The tests had to be updated for the correct expected output. PHPBB3-11598
* [feature/twig] INCLUDEPHP token abs paths & fix testNathaniel Guse2013-06-251-9/+4
| | | | PHPBB3-11598
* [feature/twig] Remove duplicate test callsNathaniel Guse2013-06-241-15/+2
| | | | PHPBB3-11598
* [feature/twig] Delete template_spacing_test.phpNathaniel Guse2013-06-241-87/+0
| | | | | | No longer needed PHPBB3-11598
* [feature/twig] Delete template_locate_test.phpNathaniel Guse2013-06-241-68/+0
| | | | | | No longer needed PHPBB3-11598
* [feature/twig] Correct template_inheritance_test.phpNathaniel Guse2013-06-241-10/+1
| | | | PHPBB3-11598
* [feature/twig] Correct includejs testNathaniel Guse2013-06-242-14/+13
| | | | PHPBB3-11598
* [feature/twig] Delete template_compile_test.phpNathaniel Guse2013-06-241-31/+0
| | | | | | No longer necessary PHPBB3-11598
* [feature/twig] Delete renderer_eval_test.phpNathaniel Guse2013-06-241-31/+0
| | | | | | No longer necessary PHPBB3-11598
* [feature/twig] Delete invalid constructs template testNathaniel Guse2013-06-243-89/+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
* [feature/twig] Working on fixing testsNathan Guse2013-06-241-32/+3
| | | | PHPBB3-11598
* [feature/twig] Use phpbb_template_twig in testsNathan Guse2013-06-124-4/+4
| | | | | | Replace all new phpbb_template( with new phpbb_template_twig( PHPBB3-11598
* [ticket/11435] Enable spacing test as it should now passNathan Guse2013-05-201-4/+0
| | | | PHPBB3-11435
* Merge remote-tracking branch 'remotes/cyberalien/ticket/11482' into developNathan Guse2013-05-205-2/+39
|\ | | | | | | | | | | | | | | | | # 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-105-2/+39
| | | | | | | | | | | | Unit tests for advanced DEFINE and ENDDEFINE PHPBB3-11482
* | [ticket/11519] Rename test event template fileNathaniel Guse2013-05-042-1/+1
| | | | | | | | | | | | | | As requested by Oleg https://github.com/phpbb/phpbb3/pull/1340#issuecomment-17306967 PHPBB3-11519
* | [ticket/11435] Mark extension spacing test as incompleteNathaniel Guse2013-04-304-3/+7
| | | | | | | | | | | | | | | | 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-254-0/+100
| | | | | | | | PHPBB3-11435
* | [ticket/11435] Fix comments in events testNathan Guse2013-04-251-1/+2
|/ | | | PHPBB3-11435
* [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-133-1/+25
|\ | | | | | | | | * develop-olympus: [ticket/11323] Add tests for inclusion of defined variables
| * [ticket/11323] Add tests for inclusion of defined variablesMarc Alexander2013-01-143-1/+22
| | | | | | | | | | | | | | | | | | 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
* | [feature/template-events] Test for event that is defined in parent style only.Oleg Pudeyev2012-11-173-0/+12
| | | | | | | | PHPBB3-9550
* | [feature/template-events] Specify style names, add inheritance tests.Oleg Pudeyev2012-11-171-7/+37
| | | | | | | | PHPBB3-9550
* | [feature/template-events] Normalize expected directory trees.Oleg Pudeyev2012-11-173-1/+1
| | | | | | | | PHPBB3-9550
* | [feature/template-events] Allow dataset to be correctly selectable.Oleg Pudeyev2012-11-171-13/+9
| | | | | | | | PHPBB3-9550
* | [feature/template-events] Dataset for template event testing with inheritance.Oleg Pudeyev2012-11-178-0/+8
| | | | | | | | PHPBB3-9550
* | [feature/template-events] Convert a single style name to array of them.Oleg Pudeyev2012-11-174-4/+4
| | | | | | | | | | | | | | This allows template code to know the entire style hierarchy for templates being rendered. PHPBB3-9550
* | [feature/template-events] Chase dependency injection for template context.Oleg Pudeyev2012-11-171-1/+1
| | | | | | | | PHPBB3-9550
* | [feature/template-events] Adjust template events test to use the dataset.Oleg Pudeyev2012-11-171-2/+2
| | | | | | | | PHPBB3-9550
* | [feature/template-events] Create a dataset for template event tests.Oleg Pudeyev2012-11-174-0/+0
| | | | | | | | | | | | Having all files in one directory is too much of a mess. PHPBB3-9550
* | [feature/template-events] Switch template event test to data providers.Oleg Pudeyev2012-11-171-16/+34
| | | | | | | | PHPBB3-9550
* | [feature/template-events] Add a universal template event test.Oleg Pudeyev2012-11-175-21/+33
| | | | | | | | | | | | | | | | | | Also drop the irrelevant includejs code and add a simple template event test. The simple test is not working yet however due to the template engine not correctly tracking which template it is rendering. PHPBB3-9550
* | [feature/template-events] Chase template/style renames and changes.Oleg Pudeyev2012-11-172-2/+2
| | | | | | | | PHPBB3-9550
* | [feature/template-events] Template events unit testVjacheslav Trushkin2012-11-172-0/+60
| | | | | | | | | | | | Adding template events test PHPBB3-9550
* | Merge remote-tracking branch 'p/ticket/10933' into developIgor Wiedler2012-11-171-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p/ticket/10933: [ticket/10933] Prose for get_first_file_location. [ticket/10933] Remaining documentation for added functions in resource locator [ticket/10933] Update template locator test to use style resource locator. [ticket/10933] Dispose of locate function in template class. [ticket/10933] Add mutators for template_path to style resource locator. [ticket/10933] Delete template_path assignment. [ticket/10933] Delete template_path from template class. [ticket/10933] Add get_first_template_location.