aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* [feature/template-engine] Replaced globals with dependency injection.Oleg Pudeyev2011-05-121-1/+3
| | | | PHPBB3-9726
* [feature/template-engine] Deleted useless catch.Oleg Pudeyev2011-05-121-4/+0
| | | | | | In tests there is no need to catch unexpected exceptions. PHPBB3-9726
* [feature/template-engine] Delete obsolete comments pertaining to notices.Oleg Pudeyev2011-05-121-7/+0
| | | | PHPBB3-9726
* [feature/template-engine] Add back IN_PHPBB preamble.Oleg Pudeyev2011-05-122-0/+33
| | | | PHPBB3-9726
* [feature/template-engine] Delete template class, use phpbb_template instead.Oleg Pudeyev2011-05-041-1/+1
| | | | PHPBB3-9726
* [feature/template-engine] Only copy files to cache if they exist.Oleg Pudeyev2011-05-011-2/+3
| | | | | | | | When testing eval code path, compiled templates may not be written to the file system, and unconditionally trying to copy them breaks tests. PHPBB3-9726
* [feature/template-engine] Relax missing file exception check.Oleg Pudeyev2011-05-011-1/+1
| | | | | | | As long as the exception message has the correct description and file name we should not care which function raised the exception. PHPBB3-9726
* [feature/template-engine] Fix negative variable expressionsIgor Wiedler2011-04-253-2/+5
| | | | | | | | | | | | | compile_tag_if had the flawed approach of adding an isset statement for all variables to the beginning of the if. This fails for negative expressions, and checking those takes a considerable effort. The easier solution is to make the variable expression itself conditional, defaulting to null if it is not set. Thanks to naderman for the solution. PHPBB3-9726
* [feature/template-engine] Added a test for reuse of loop identifiers.Oleg Pudeyev2011-04-252-0/+16
| | | | | | | | | This currently does not pass, thus it is commented out. The reuse appears implausible in the same file, however it may be also done across template files where it is much harder to detect. PHPBB3-9726
* [feature/template-engine] Corrected miscompilation of loop size constructs.Oleg Pudeyev2011-04-252-0/+46
| | | | PHPBB3-9726
* [feature/template-engine] Corrected an off-by-one error in nested namespaces.Oleg Pudeyev2011-04-243-3/+24
| | | | | | | | This error resulted in a dot from the namespace being placed into variable reference in compiled template code, thus creating bogus compiled template code. PHPBB3-9726
* [feature/template-engine] Added a test for multilevel references in loops.Oleg Pudeyev2011-04-242-0/+24
| | | | | | | | | This currently fails. This test is a reduced version of permission_mask template in acp, which is not correctly compiled by the current template engine code. PHPBB3-9726
* [feature/template-engine] Deleted silencing of notices.Oleg Pudeyev2011-04-241-3/+3
| | | | | | | The code is now supposed to be notice-free, therefore there is no need to have the notices silenced. PHPBB3-9726
* [feature/template-engine] Deleted $template from phpbb_template_compile class.Oleg Pudeyev2011-04-241-2/+1
| | | | | | | | | | | | | phpbb_template_compile is now much simpler. It takes complete file paths as inputs, either source template path or source template path and output compiled template path. The number of methods also went down to two - compile template and returned compiled text or compile and write to file. phpbb_compile class is responsible for determining source and compiled paths. It already had all the data necessary for this, now the code is in the same place as the data it uses. PHPBB3-9726
* [feature/template-engine] Allow leading underscores in variable names.Oleg Pudeyev2011-04-242-0/+30
| | | | | | Subsilver uses ._file in overall_header. PHPBB3-9726
* [feature/template-engine] Fix recompilation logic.Oleg Pudeyev2011-04-241-1/+1
| | | | | | | | | Do not change $recompile from true to false - any recompilation condition alone is sufficient to force recompilation. Also uncomment the nonexistent file test which passes with this fix. PHPBB3-9726
* [feature/template-engine] Adjust path in includephp template.Oleg Pudeyev2011-04-241-1/+1
| | | | | | Now that tests are run from top level the '..' is wrong. PHPBB3-9726
* [feature/template-engine] Update tests.Marek A. Ruszczynski2011-04-235-55/+30
| | | | PHPBB3-9726
* [ticket/10006] More testingErik Frèrejean2011-04-181-2/+5
| | | | | | Change the DB test to test agains new cache/config mock objects PHPBB3-10006
* [ticket/10006] Tweak the tests a bitErik Frèrejean2011-04-182-2/+5
| | | | PHPBB3-10006
* [ticket/10006] Add phpbb_config::deleteErik Frèrejean2011-04-182-0/+16
| | | | | | Add the missing `phpbb_config::delete` method to the config class PHPBB3-10006
* Merge branch 'develop-olympus' into developAndreas Fischer2011-04-011-0/+81
|\ | | | | | | | | | | | | | | * develop-olympus: [ticket/9751] Add shortcut logic for pass_complex == PASS_TYPE_ANY. [ticket/9751] Compare $password with empty string instead of casting it to bool [ticket/9751] Use a switch/case block without break for password complexity. [ticket/9751] Password requirement "Must contain letters and numbers" fails
| * [ticket/9751] Password requirement "Must contain letters and numbers" failsrxu2011-04-011-0/+81
| | | | | | | | PHPBB3-9751
* | Merge branch 'develop-olympus' into developOleg Pudeyev2011-03-232-7/+11
|\ \ | |/ | | | | | | * develop-olympus: [ticket/10082] session_id is CHAR(32) not VARCHAR(32), so give them a CHAR(32).
| * Merge branch 'ticket/bantu/10082' into develop-olympusOleg Pudeyev2011-03-232-7/+11
| |\ | | | | | | | | | | | | * ticket/bantu/10082: [ticket/10082] session_id is CHAR(32) not VARCHAR(32), so give them a CHAR(32).
| | * [ticket/10082] session_id is CHAR(32) not VARCHAR(32), so give them a CHAR(32).Andreas Fischer2011-03-192-7/+11
| | | | | | | | | | | | | | | | | | This fixes session unit tests on PostgreSQL in particular. PHPBB3-10082
* | | Merge branch 'develop-olympus' into developOleg Pudeyev2011-03-221-0/+21
|\ \ \ | |/ / | | | | | | | | | | | | * develop-olympus: [ticket/10101] Add test case for native phpass hashes [ticket/10101] Add support for native phpass hashes
| * | [ticket/10101] Add test case for native phpass hashesIgor Wiedler2011-03-201-0/+21
| | | | | | | | | | | | PHPBB3-10101
* | | Merge branch 'develop-olympus' into developIgor Wiedler2011-03-121-0/+5
|\ \ \ | |/ / | | | | | | | | | * develop-olympus: [ticket/10088] Also ignore DBMS versions other than MySQLi in cache mock.
| * | [ticket/10088] Also ignore DBMS versions other than MySQLi in cache mock.Andreas Fischer2011-03-121-0/+5
| |/ | | | | | | PHPBB3-10088
* | Merge branch 'ticket/naderman/10080' into developNils Adermann2011-03-071-0/+9
|\ \ | | | | | | | | | | | | * ticket/naderman/10080: [ticket/10080] Allow resetting the request instance used by request_var.
| * | [ticket/10080] Allow resetting the request instance used by request_var.Nils Adermann2011-03-071-0/+9
| | | | | | | | | | | | PHPBB3-10080
* | | Merge branch 'develop-olympus' into developNils Adermann2011-03-073-206/+47
|\ \ \ | | |/ | |/| | | | | | | | | | * develop-olympus: [ticket/10081] remove $phpEx. [ticket/10081] Cleanup Template Tests.
| * | [ticket/10081] remove $phpEx.Marek A. Ruszczynski2011-03-071-10/+3
| | | | | | | | | | | | PHPBB3-10081
| * | [ticket/10081] Cleanup Template Tests.Marek A. Ruszczynski2011-03-073-199/+47
| | | | | | | | | | | | | | | | | | There are no incomplete template tests anymore. PHPBB3-10081
* | | Merge branch 'ticket/naderman/10011' into developAndreas Fischer2011-03-071-3/+3
|\ \ \ | |_|/ |/| | | | | | | | * ticket/naderman/10011: [ticket/10011] Removing __DIR__ uses I missed in previous commit
| * | [ticket/10011] Removing __DIR__ uses I missed in previous commitNils Adermann2011-03-071-3/+3
| | | | | | | | | | | | PHPBB3-10011
* | | Merge branch 'ticket/naderman/10011' into developAndreas Fischer2011-03-072-7/+7
|\ \ \ | |/ / | | | | | | | | | * ticket/naderman/10011: [ticket/10011] Removing __DIR__ for PHP5.2 compatability from new files.
| * | [ticket/10011] Removing __DIR__ for PHP5.2 compatability from new files.Nils Adermann2011-03-072-7/+7
| | | | | | | | | | | | PHPBB3-10011
* | | Merge branch 'develop-olympus' into developAndreas Fischer2011-03-071-0/+4
|\ \ \ | |/ / |/| / | |/ | | * develop-olympus: [ticket/10040] Ensure the test suite runs on PHP 5.2 without E_DEPRECATED.
| * [ticket/10040] Ensure the test suite runs on PHP 5.2 without E_DEPRECATED.Nils Adermann2011-03-071-0/+4
| | | | | | | | PHPBB3-10040
* | Merge branch 'ticket/9549' into developOleg Pudeyev2011-03-012-0/+310
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ticket/9549: [ticket/9549] Display users in their primary group instead of their first group [ticket/9549] Change default value of "sort legend by group name" to false. [ticket/9549] Fix displaying empty groups [ticket/9549] Fix language strings. [ticket/9549] Only add group to legend/teampage when the checkbox is checked. [ticket/9549] New method move() to move a group more than 1 up/down. [ticket/9549] Fix some minor issues with descriptions and coding-guidelines. [ticket/9549] Throw an error when the given field-name is invalid. [ticket/9549] Make the class non static and extend delete_group function. [ticket/9549] Add template changes for subsilver2. [ticket/9549] Enhance teampage and legend functionality [ticket/9549] Add the module and files for the ACP. [ticket/9549] Update database with the new config values and columns [ticket/9549] Enhance teampage functionality with a new class, group_positions. Conflicts: phpBB/install/database_update.php
| * | [ticket/9549] New method move() to move a group more than 1 up/down.Joas Schilling2011-02-161-0/+59
| | | | | | | | | | | | PHPBB3-9549
| * | [ticket/9549] Fix some minor issues with descriptions and coding-guidelines.Joas Schilling2011-02-161-1/+1
| | | | | | | | | | | | PHPBB3-9549
| * | [ticket/9549] Make the class non static and extend delete_group function.Joas Schilling2011-02-161-10/+31
| | | | | | | | | | | | | | | | | | | | | delete_group() can now be used, so it does not update the actual group. This can save a query, when you update the group anyway. PHPBB3-9549
| * | [ticket/9549] Enhance teampage functionality with a new class, group_positions.Joas Schilling2011-02-162-0/+230
| | | | | | | | | | | | PHPBB3-9549
* | | Merge branch 'develop-olympus' into developIgor Wiedler2011-02-272-17/+45
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [task/session-tests] Make result check independent of returned row order. [task/session-tests] By default the cache check now skips over db server info [task/session-tests] Correctly display message on session continue test failure [task/session-tests] Make the session id replacement of dataset values clearer Conflicts: tests/mock/cache.php
| * | [task/session-tests] Make result check independent of returned row order.Nils Adermann2011-02-271-3/+4
| | | | | | | | | | | | PHPBB3-9732
| * | [task/session-tests] By default the cache check now skips over db server infoNils Adermann2011-02-271-2/+9
| | | | | | | | | | | | PHPBB3-9732
| * | [task/session-tests] Correctly display message on session continue test failureNils Adermann2011-02-271-1/+1
| | | | | | | | | | | | PHPBB3-9732