aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge branch 'develop-olympus' into developNils Adermann2011-02-246-78/+274
|\ \ \ | |/ / | | | | | | | | | | | | * develop-olympus: [ticket/10052] Add comments to the session testable factory. [ticket/10052] Correct session tests, and separate session factory from tests
| * | [ticket/10052] Add comments to the session testable factory.Nils Adermann2011-02-232-7/+60
| | | | | | | | | | | | PHPBB3-10052
| * | [ticket/10052] Correct session tests, and separate session factory from testsNils Adermann2011-02-235-78/+165
| | | | | | | | | | | | PHPBB3-10052
* | | Merge branch 'develop-olympus' into developAndreas Fischer2011-02-203-12/+15
|\ \ \ | |/ / | | / | |/ |/| | | | | | | | | | | * develop-olympus: [ticket/10049] Mark session init test incomplete for now. [ticket/10049] Mark session continue test incomplete for now. [ticket/10049] Globalize $_SID. [ticket/10049] Chase assertResultEquals rename. [ticket/10049] Fixed requires in session tests and mock. [ticket/10049] Renamed session test files to proper file names.
| * [ticket/10049] Mark session init test incomplete for now.Oleg Pudeyev2011-02-201-0/+2
| | | | | | | | | | | | | | This test passes by itself but fails when run as part of the compete suite. Mark it incomplete to avoid breaking the suite. PHPBB3-10049
| * [ticket/10049] Mark session continue test incomplete for now.Oleg Pudeyev2011-02-201-0/+2
| | | | | | | | | | | | | | I am unable to find any code revision in which this test worked. Thus to not break the entire suite I mark it incomplete. PHPBB3-10049
| * [ticket/10049] Globalize $_SID.Oleg Pudeyev2011-02-191-0/+1
| | | | | | | | PHPBB3-10049
| * [ticket/10049] Chase assertResultEquals rename.Oleg Pudeyev2011-02-192-4/+4
| | | | | | | | | | | | | | | | | | | | | | cd694e9b9dfd59c8be00a52b30db8e6c280b97a9 renamed assertResultEquals to assertSqlResultEquals. However, since the session tests were never executed calls in them were never updated. Parameter order also changed; chase that too. PHPBB3-10049
| * [ticket/10049] Fixed requires in session tests and mock.Oleg Pudeyev2011-02-193-8/+6
| | | | | | | | PHPBB3-10049
| * [ticket/10049] Renamed session test files to proper file names.Oleg Pudeyev2011-02-192-0/+0
| | | | | | | | | | | | | | | | phpunit.xml.dist specifies that only files ending in _test.php are test files; with the old names session tests were not run as a result. PHPBB3-10049
* | Merge branch 'develop-olympus' into developNils Adermann2011-02-163-273/+359
|\ \ | |/ | | | | | | | | | | | | * develop-olympus: [task/refactor-db-testcase] Further improve error messages. [task/refactor-db-testcase] Do not show db password on connect error [task/refactor-db-testcase] Improve error message of db tests [task/refactor-db-testcase] Refactor phpbb_database_test_case
| * [task/refactor-db-testcase] Further improve error messages.Oleg Pudeyev2011-02-151-2/+2
| | | | | | | | PHPBB3-10043
| * [task/refactor-db-testcase] Do not show db password on connect errorIgor Wiedler2011-02-141-1/+2
| | | | | | | | PHPBB3-10043
| * [task/refactor-db-testcase] Improve error message of db testsIgor Wiedler2011-02-141-2/+11
| | | | | | | | | | | | | | | | | | | | | | If database tests cannot be run the error message is ambigous. This commit makes it clearer: - whether the supplied dbms is supported by us - which dbms are supported by us - whether the required PDO extension is loaded PHPBB3-10043
| * [task/refactor-db-testcase] Refactor phpbb_database_test_caseIgor Wiedler2011-02-143-273/+349
| | | | | | | | | | | | | | | | | | Move most of the methods to a separate connection manager class. The test case creates a manager to handle database creation, schema loading and more. Most of the methods could be simplified because they can access shared pdo, config and dbms data. PHPBB3-10043
* | [feature/system-cron] More tests for cron manager.Oleg Pudeyev2011-02-124-0/+55
| | | | | | | | PHPBB3-9596
* | [feature/system-cron] Rename lock() to acquire and unlock() to release.Nils Adermann2011-02-121-13/+13
| | | | | | | | PHPBB3-9596
* | [feature/system-cron] Cache cron's task names.Nils Adermann2011-02-123-8/+70
| | | | | | | | | | | | | | | | Instead of using a path relative to phpbb_root_path the path to the task directory is directly passed to the cron manager. Dummy tasks are now in the tests directory directly. PHPBB3-9596
* | [feature/system-cron] Use a RecursiveDirectoryIterator instead of readdir.Nils Adermann2011-02-121-1/+1
| | | | | | | | PHPBB3-9596
* | [feature/system-cron] Make use of the new config class in locks.Nils Adermann2011-02-121-11/+27
| | | | | | | | PHPBB3-9596
* | [feature/system-cron] Fix duplicate instantiation of class loader in tests.Nils Adermann2011-02-121-5/+0
| | | | | | | | PHPBB3-9596
* | [feature/system-cron] Abstract the database locking mechanism out of cron.Nils Adermann2011-02-122-0/+80
| | | | | | | | | | | | | | Added a number of tests for the locking mechanism which can now lock arbitrary config variables. PHPBB3-9596
* | [feature/system-cron] Move tests to phpunit.xml and always load class loaderNils Adermann2011-02-123-59/+12
| | | | | | | | PHPBB3-9596
* | [feature/system-cron] Basic tests for cron manager.Oleg Pudeyev2011-02-122-0/+98
| | | | | | | | PHPBB3-9596
* | [ticket/10013] Use mkdir to create directory trees.Oleg Pudeyev2011-02-121-5/+1
| | | | | | | | PHPBB3-10013
* | [ticket/10013] Fixed cache test to create intermediate directories.Oleg Pudeyev2011-02-122-2/+11
| | | | | | | | PHPBB3-10013
* | [ticket/10013] Changed cache test to use tests/tmp/cache as cache directoryOleg Pudeyev2011-02-122-4/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the first step of making the test suite use a single directory for writing files to, this directory being tests/tmp. The cache test, instead of tests/cache/tmp, now writes to tests/tmp/cache. Also remove cache directory in setUp method, in case an earlier test run did not complete successfully and the cache directory was not cleaned up. Finally, this change makes the cache test take responsibility over the entire contents of its cache directory. PHPBB3-10013
* | Merge branch 'develop-olympus' into developAndreas Fischer2011-02-071-0/+58
|\ \ | |/ | | | | | | | | * develop-olympus: [ticket/9949] Unit tests for user::lang() [ticket/9949] $user->lang() uses last int-value to get the key not first
| * Merge branch 'ticket/nickvergessen/9949' into develop-olympusAndreas Fischer2011-02-071-0/+58
| |\ | | | | | | | | | | | | | | | * ticket/nickvergessen/9949: [ticket/9949] Unit tests for user::lang() [ticket/9949] $user->lang() uses last int-value to get the key not first
| | * [ticket/9949] Unit tests for user::lang()Andreas Fischer2011-02-071-0/+58
| | | | | | | | | | | | PHPBB3-9949
* | | Merge branch 'ticket/nickvergessen/9823' into developAndreas Fischer2011-02-046-0/+732
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ticket/nickvergessen/9823: [ticket/9823] Replace 0x80000000 with -2147483648 in tests. [ticket/9823] Move mock file into the mock/ folder. [ticket/9823] Update Unit tests to the new system and correct some minor issues [ticket/9823] Update copyright year and add newline at the end of the file. [ticket/9823] Correct unit-tests to use self:: instead of the class-name. [ticket/9823] Unit tests for validate_config_vars. [ticket/9823] Unit tests for build_cfg_template. [ticket/9823] Unit tests for validate_rang. [ticket/9823] Unit tests for h_radio. [ticket/9823] Moving the functions. Unit tests for build_select. Conflicts: phpBB/adm/index.php
| * | | [ticket/9823] Replace 0x80000000 with -2147483648 in tests.Andreas Fischer2011-02-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | See 181f2551cfc82e119d73f462268813d18de06097 PHPBB3-9823
| * | | [ticket/9823] Move mock file into the mock/ folder.Joas Schilling2011-02-016-10/+10
| | | | | | | | | | | | | | | | PHPBB3-9823
| * | | [ticket/9823] Update Unit tests to the new system and correct some minor issuesJoas Schilling2011-02-016-70/+17
| | | | | | | | | | | | | | | | PHPBB3-9823
| * | | [ticket/9823] Update copyright year and add newline at the end of the file.Joas Schilling2011-02-011-2/+2
| | | | | | | | | | | | | | | | PHPBB3-9823
| * | | [ticket/9823] Correct unit-tests to use self:: instead of the class-name.Joas Schilling2011-02-012-10/+10
| | | | | | | | | | | | | | | | PHPBB3-9823
| * | | [ticket/9823] Unit tests for validate_config_vars.Joas Schilling2011-02-013-8/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix some documentations and use the $max-var instead of the magic-number in validate_config_vars. PHPBB3-9823
| * | | [ticket/9823] Unit tests for build_cfg_template.Joas Schilling2011-02-012-0/+195
| | | | | | | | | | | | | | | | PHPBB3-9823
| * | | [ticket/9823] Unit tests for validate_rang.Joas Schilling2011-02-012-0/+187
| | | | | | | | | | | | | | | | PHPBB3-9823
| * | | [ticket/9823] Unit tests for h_radio.Joas Schilling2011-02-013-0/+157
| | | | | | | | | | | | | | | | PHPBB3-9823
| * | | [ticket/9823] Moving the functions. Unit tests for build_select.Joas Schilling2011-02-012-0/+97
| | | | | | | | | | | | | | | | PHPBB3-9823
* | | | [ticket/10011] Tests can't be ran on PHP < 5.3Erik Frèrejean2011-01-318-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | Apply the `__DIR__` fix to some remaining Ascraeus tests PHPBB3-10011
* | | | Merge branch 'develop-olympus' into developAndreas Fischer2011-01-3118-35/+35
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | | | | * develop-olympus: [ticket/10011] Tests don't work on PHP < 5.3 Conflicts: tests/security/redirect_test.php
| * | [ticket/10011] Tests don't work on PHP < 5.3Erik Frèrejean2011-01-3118-33/+33
| |/ | | | | | | | | | | | | | | Due to the usage of `__DIR__` for the file includes the tests can't be ran on systems with PHP < 5.3. Replace all occurances of `__DIR__` with `dirname(__FILE__)`. PHPBB3-10011
* | Merge branch 'develop-olympus' into developNils Adermann2011-01-238-1/+322
|\ \ | |/ | | | | | | | | | | | | | | | | * develop-olympus: [task/session-tests] Renamed assertSqlResultEquals and fixed its param order [task/session-tests] Test additional combinations of session_begin. [task/session-tests] Added tests for the session class. Conflicts: tests/mock/cache.php
| * [task/session-tests] Renamed assertSqlResultEquals and fixed its param orderNils Adermann2011-01-211-1/+1
| | | | | | | | PHPBB3-9732
| * [task/session-tests] Test additional combinations of session_begin.Nils Adermann2011-01-201-12/+46
| | | | | | | | PHPBB3-9732
| * [task/session-tests] Added tests for the session class.Nils Adermann2011-01-208-1/+344
| | | | | | | | | | | | | | | | | | | | | | Two first simple tests to check functionality of session_begin and session_create. Added a mock class for the cache as well as a subclass of session which has its cookie handling function mocked out to avoid header sending problems. PHPBB3-9732
* | Merge branch 'develop-olympus' into developIgor Wiedler2011-01-161-2/+12
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/9933] Remove empty word check. [ticket/9933] Add $use_unicode parameter to get_censor_preg_expression(). [ticket/9933] Adjust word censor regex for non-unicode mode. Conflicts: phpBB/includes/functions.php Also remove static $unicode_support.
| * [ticket/9933] Add $use_unicode parameter to get_censor_preg_expression().Andreas Fischer2011-01-161-2/+12
| | | | | | | | | | | | | | | | | | Rename $unicode to $unicode_support, pass in $use_unicode defaulting to true. In unit tests we can now pass in $use_unicode as false and also test the code path that is taken when PCRE does not support unicode. PHPBB3-9933