aboutsummaryrefslogtreecommitdiffstats
path: root/tests
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] Call set_style in the foo/bar controller for functional testsNathaniel Guse2013-07-041-0/+2
| | | | PHPBB3-11598
* [feature/twig] Debugging test failuresNathaniel Guse2013-07-031-0/+6
| | | | PHPBB3-11598
* [feature/twig] Prevent errors from mkdir if the dir already existsNathaniel Guse2013-07-021-1/+4
| | | | 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
* Merge branch 'develop' of https://github.com/phpbb/phpbb3 into feature/twigNathaniel Guse2013-07-011-4/+34
|\ | | | | | | | | | | | | | | | | | | | | | | # By Dhruv # Via Andreas Fischer (3) and Dhruv (1) * 'develop' of https://github.com/phpbb/phpbb3: [ticket/10838] Fix URL for wiki and remove irrelevant line [ticket/10838] Remove php 5.4 and builtin server references [ticket/10838] Fix missing data [ticket/10838] separate database used mentioned in unit tests [ticket/11585] Make $auth_admin class property [ticket/10838] Updated RUNNING_TESTS.md
| * Merge branch 'develop-olympus' into developAndreas Fischer2013-07-011-4/+34
| |\ | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10838] Fix URL for wiki and remove irrelevant line [ticket/10838] Remove php 5.4 and builtin server references [ticket/10838] Fix missing data [ticket/10838] separate database used mentioned in unit tests [ticket/10838] Updated RUNNING_TESTS.md
| | * Merge remote-tracking branch 'dhruvgoel92/ticket/10838' into develop-olympusAndreas Fischer2013-07-011-4/+34
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dhruvgoel92/ticket/10838: [ticket/10838] Fix URL for wiki and remove irrelevant line [ticket/10838] Remove php 5.4 and builtin server references [ticket/10838] Fix missing data [ticket/10838] separate database used mentioned in unit tests [ticket/10838] Updated RUNNING_TESTS.md
| | | * [ticket/10838] Fix URL for wiki and remove irrelevant lineDhruv2013-07-021-2/+2
| | | | | | | | | | | | | | | | PHPBB3-10838
| | | * [ticket/10838] Remove php 5.4 and builtin server referencesDhruv2013-07-021-7/+1
| | | | | | | | | | | | | | | | PHPBB3-10838
| | | * [ticket/10838] Fix missing dataDhruv2013-07-021-2/+2
| | | | | | | | | | | | | | | | PHPBB3-10838
| | | * [ticket/10838] separate database used mentioned in unit testsDhruv2013-07-021-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Separate database used for tests which is deleted each time tests are run information is added to unit tests. PHPBB3-10838
| | | * [ticket/10838] Updated RUNNING_TESTS.mdDhruv2013-06-271-0/+36
| | | | | | | | | | | | | | | | PHPBB3-10838
* | | | [feature/twig] Remove resource locator dependency from templateNathaniel Guse2013-07-015-6/+4
| | | | | | | | | | | | | | | | 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
* | | | Merge branch 'develop' of https://github.com/phpbb/phpbb3 into feature/twigNathaniel Guse2013-07-014-104/+144
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # By Dhruv (7) and others # Via Andreas Fischer (7) and others * 'develop' of https://github.com/phpbb/phpbb3: [ticket/11593] initialize $is_expr as null before being passed to get_varref [ticket/9341] Assert that page doesnt contain next or prev page posts [ticket/9341] Follow the Next/Prev link in tests follow the next/prev link and then assert if the page contains its last post or not [ticket/9341] remove PREV_PAGE tpl var used for backward compatability [ticket/11618] Replace glob() with scandir() and string matching [ticket/9341] Add tests for checking Next and Previous template vars [ticket/9341] Move create_topic and post into functional test case [ticket/11615] Fix typo in creation_test [ticket/11615] Remove magic number in creation_test [ticket/11615] Rename class in file to match [ticket/11615] Rename init_test to creation_test for clarity [ticket/9341] Use U_PREVIOUS and U_NEXT in template files [ticket/9341] Correctly named template vars Conflicts: tests/template/template_test_case.php
| * | | Merge remote-tracking branch 'dhruvgoel92/ticket/9341' into developJoas Schilling2013-06-293-101/+140
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dhruvgoel92/ticket/9341: [ticket/9341] Assert that page doesnt contain next or prev page posts [ticket/9341] Follow the Next/Prev link in tests follow the next/prev link and then assert if the page contains its last post or not [ticket/9341] remove PREV_PAGE tpl var used for backward compatability [ticket/9341] Add tests for checking Next and Previous template vars [ticket/9341] Move create_topic and post into functional test case [ticket/9341] Use U_PREVIOUS and U_NEXT in template files [ticket/9341] Correctly named template vars
| | * | | [ticket/9341] Assert that page doesnt contain next or prev page postsDhruv2013-06-281-1/+3
| | | | | | | | | | | | | | | | | | | | PHPBB3-9341
| | * | | [ticket/9341] Follow the Next/Prev link in testsDhruv2013-06-281-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | follow the next/prev link and then assert if the page contains its last post or not PHPBB3-9341
| | * | | [ticket/9341] Add tests for checking Next and Previous template varsDhruv2013-06-271-0/+33
| | | | | | | | | | | | | | | | | | | | PHPBB3-9341
| | * | | [ticket/9341] Move create_topic and post into functional test caseDhruv2013-06-272-101/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | create_topic and create_post are moved into functional test case so that they can be used by other tests as well PHPBB3-9341
| * | | | Merge branch 'develop-olympus' into developAndreas Fischer2013-06-271-4/+15
| |\ \ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/11618] Replace glob() with scandir() and string matching Conflicts: tests/template/template_test.php
| | * | | Merge remote-tracking branch 'Hardolaf/ticket/11618' into develop-olympusAndreas Fischer2013-06-271-4/+15
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * Hardolaf/ticket/11618: [ticket/11618] Replace glob() with scandir() and string matching
| | | * | | [ticket/11618] Replace glob() with scandir() and string matchingJoseph Warner2013-06-261-4/+15
| | | | |/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Removes glob from template tests as glob() does not work on all systems according to PHP documentation as has been noticed by users. PHPBB3-11618
| | * | | Merge remote-tracking branch 'asperous/ticket/11615/creation_test' into ↵Andreas Fischer2013-06-271-3/+4
| | |\ \ \ | | | |/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | develop-olympus * asperous/ticket/11615/creation_test: [ticket/11615] Fix typo in creation_test [ticket/11615] Remove magic number in creation_test [ticket/11615] Rename class in file to match [ticket/11615] Rename init_test to creation_test for clarity
| * | | | Merge branch 'develop-olympus' into developAndreas Fischer2013-06-271-3/+4
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/11615] Fix typo in creation_test [ticket/11615] Remove magic number in creation_test [ticket/11615] Rename class in file to match [ticket/11615] Rename init_test to creation_test for clarity
| | * \ \ \ Merge remote-tracking branch 'asperous/ticket/11615/creation_test' into ↵Andreas Fischer2013-06-271-3/+4
| | |\ \ \ \ | | | | |/ / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | develop-olympus * asperous/ticket/11615/creation_test: [ticket/11615] Fix typo in creation_test [ticket/11615] Remove magic number in creation_test [ticket/11615] Rename class in file to match [ticket/11615] Rename init_test to creation_test for clarity
| | | * | | [ticket/11615] Fix typo in creation_testAndy Chase2013-06-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | PHPBB3-11615
| | | * | | [ticket/11615] Remove magic number in creation_testAndy Chase2013-06-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removing this magic number to its own variable with clean multiplication makes it clear what the number represents. PHPBB3-11615
| | | * | | [ticket/11615] Rename class in file to matchAndy Chase2013-06-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | PHPBB3-11615
| | | * | | [ticket/11615] Rename init_test to creation_test for clarityAndy Chase2013-06-261-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | PHPBB3-11615
* | | | | | [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