aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/11784] Remove naming redundancy for event listenersMatt Friedman2013-08-1311-0/+0
| | | | PHPBB3-11784
* [ticket/11777] Fix new test for loop variables in extension template listenersrechosen2013-08-121-0/+0
| | | | | | | | With the merge of https://github.com/phpbb/phpbb3/pull/1564 a new test has been added. Renamed and moved the template listener file of that test to comply with the new requirements. PHPBB3-11777
* [ticket/11777] Require a suffix of '_listener' on extension template listenersrechosen2013-08-1210-0/+0
| | | | | | | | To further mirror the file name and location requirements for php template event listeners, require extension template event listener files to follow the '<event name>_listener.html' naming format. PHPBB3-11777
* [ticket/11777] Rename the extension template listener subdirectory to 'event/'rechosen2013-08-1210-0/+0
| | | | | | | | | Per suggestion of EXreaction and nickvergessen, do not look for extension template event listeners in styles/[style]/template/events/ but in styles/[style]/template/event/ (without the trailing 's') to match the way phpBB looks for php template event listeners. PHPBB3-11777
* [ticket/11777] Move the testing template events to 'events/' subdirectoriesrechosen2013-08-1210-0/+0
| | | | | | | | The tests written for extension template events did not follow the convention and documentation of placing template event files in the events/ subdirectory. Moved the files to this subdirectory so the tests succeed again. PHPBB3-11777
* [ticket/11701] New line at EOFNathaniel Guse2013-07-231-1/+1
| | | | PHPBB3-11701
* [ticket/11701] Test events in loopsNathaniel Guse2013-07-233-0/+14
| | | | PHPBB3-11701
* [ticket/11701] Fix loops var checkNathaniel Guse2013-07-237-54/+54
| | | | PHPBB3-11701
* Merge remote-tracking branch 'EXreaction/ticket/11718' into developAndreas Fischer2013-07-232-1/+6
|\ | | | | | | | | | | | | | | | | * 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-192-1/+6
| | | | | | | | PHPBB3-11718
* | [ticket/11707] Twig DEFINE not working as expectedNathaniel Guse2013-07-192-1/+3
|/ | | | PHPBB3-11707
* Merge pull request #1519 from cyberalien/ticket/11647Nathan Guse2013-07-132-20/+14
|\ | | | | Fix INCLUDEJS URLs handling
| * [ticket/11647] Always use &amp; for URLsVjacheslav Trushkin2013-07-112-13/+7
| | | | | | | | | | | | | | 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-112-10/+10
| | | | | | | | PHPBB-11647
* | Merge remote-tracking branch 'EXreaction/ticket/11665' into developAndreas Fischer2013-07-121-0/+29
|\ \ | | | | | | | | | | | | | | | * EXreaction/ticket/11665: [ticket/11665] Fix test class name [ticket/11665] Can't change file names already sent to set_filenames
| * | [ticket/11665] Fix test class nameNathaniel Guse2013-07-121-1/+1
| | | | | | | | | | | | PHPBB3-11665
| * | [ticket/11665] Can't change file names already sent to set_filenamesNathaniel Guse2013-07-121-0/+29
| | | | | | | | | | | | PHPBB3-11665
* | | [ticket/11664] Stop creating php.html file in root path in testsNathaniel Guse2013-07-122-2/+2
|/ / | | | | | | | | | | Also includephp_absolute.html PHPBB3-11664
* | [ticket/11662] Typos: occured -> occurredAndreas Fischer2013-07-121-1/+1
| | | | | | | | PHPBB3-11662
* | [feature/bootstrap-dic] Bootstrap container from config.phpIgor Wiedler2013-07-111-1/+4
| | | | | | | | PHPBB3-11651
* | [ticket/11388] Add newlines at EOFNathaniel Guse2013-07-112-2/+2
| | | | | | | | PHPBB3-11388
* | [ticket/11388] INCLUDECSSNathaniel Guse2013-07-114-0/+31
|/ | | | PHPBB3-11388
* [ticket/11388] Do not append assets_version if using remote path (e.g. http)Nathaniel Guse2013-07-111-3/+3
| | | | PHPBB3-11388
* [ticket/11388] INCLUDEJS test for //(url)Nathaniel Guse2013-07-112-0/+6
| | | | PHPBB3-11388
* [ticket/11388] Fixing includejs testNathaniel Guse2013-07-102-44/+118
| | | | | | | | | 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-102-7/+32
|\ | | | | | | | | | | | | | | | | '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-102-7/+32
| | | | | | | | PHPBB3-11598
* | [feature/twig] Add simple test to make sure Twig filters/tags are workingNathan Guse2013-07-083-0/+20
|/ | | | PHPBB3-11598
* [feature/twig] Add template tests for S_NUM_ROWS and S_BLOCK_NAMENathan Guse2013-07-052-3/+34
| | | | PHPBB3-11598
* [feature/twig] Add template test for ===, !==Nathan Guse2013-07-052-4/+26
| | | | PHPBB3-11598
* [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