aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'github-bantu/ticket/10265' into develop-olympusNils Adermann2011-07-161-1/+1
|\ | | | | | | | | * github-bantu/ticket/10265: [ticket/10265] Move mt_rand.php to wrapper folder and add _test suffix.
| * [ticket/10265] Move mt_rand.php to wrapper folder and add _test suffix.Andreas Fischer2011-07-131-1/+1
| | | | | | | | PHPBB3-10265
* | Merge remote-tracking branch 'github-bantu/ticket/10263' into develop-olympusNils Adermann2011-07-161-0/+130
|\ \ | | | | | | | | | | | | | | | | | | | | | * github-bantu/ticket/10263: [ticket/10263] Call phpbb_version_compare() from includes/acp/acp_main.php [ticket/10263] Call phpbb_version_compare() from includes/acp/acp_update.php [ticket/10263] Adding unit tests for phpbb_version_compare(). [ticket/10263] Add wrapper for version_compare() that allows the use of A and B
| * | [ticket/10263] Adding unit tests for phpbb_version_compare().Andreas Fischer2011-07-131-0/+130
| |/ | | | | | | PHPBB3-10263
* | [ticket/10243] Adding a few unit tests for phpbb_gmgetdate().Andreas Fischer2011-07-131-0/+49
|/ | | | PHPBB3-10243
* [ticket/10247] Add a db_tools test for the removal of a primary key column.Nils Adermann2011-07-031-1/+9
| | | | | | | The previous drop column test already deleted the primary key, so that one was replaced with an ordinary column. PHPBB3-10247
* [ticket/9892] Correct copyright yearNils Adermann2011-06-121-1/+1
| | | | PHPBB3-9892
* [ticket/9892] Remove incorrect use of camel caseNils Adermann2011-06-121-2/+2
| | | | PHPBB3-9892
* [ticket/9892] Adding a number of tests for db_toolsNils Adermann2011-06-121-0/+268
| | | | | | | | | | The test creates a table and runs a number of queries on it to judge whether the selected column types can hold the data they are expected to contain. Additional test methods check the auto increment feature and a few of the basic commands of db_tools. This is only a starting point. Plenty more tests need to be added. PHPBB3-9892
* [ticket/10206] Failed unicode.org downloads no longer terminate testsNils Adermann2011-06-101-2/+4
| | | | | | Instead a warning is triggered and an explanation echo'd. PHPBB3-10206
* Merge branch 'ticket/rxu/217' into develop-olympusNils Adermann2011-06-092-0/+83
|\ | | | | | | | | | | | | | | | | * ticket/rxu/217: [ticket/217] Use positive assertions in tests. [ticket/217] Silence errors in tests, not code. [ticket/217] Use positive parameter statement for bbcode_init() [ticket/217] Adjust patch, add tests [ticket/217] Multiline [url] not converted
| * [ticket/217] Use positive assertions in tests.Oleg Pudeyev2011-06-061-9/+27
| | | | | | | | PHPBB3-217
| * [ticket/217] Silence errors in tests, not code.Oleg Pudeyev2011-06-062-0/+24
| | | | | | | | | | | | Use a mock user object for testing bbcode. PHPBB3-217
| * [ticket/217] Use positive parameter statement for bbcode_init()rxu2011-06-061-1/+1
| | | | | | | | PHPBB3-217
| * [ticket/217] Adjust patch, add testsrxu2011-06-061-0/+41
| | | | | | | | PHPBB3-217
* | Merge remote-tracking branch 'naderman/ticket/10005' into develop-olympusAndreas Fischer2011-06-092-0/+86
|\ \ | | | | | | | | | | | | | | | * naderman/ticket/10005: [ticket/10005] Add description to test cases [ticket/10005] Add validation of dropdown custom profile field values
| * | [ticket/10005] Add description to test casesNils Adermann2011-06-031-10/+13
| | | | | | | | | | | | PHPBB3-10005
| * | [ticket/10005] Add validation of dropdown custom profile field valuesNils Adermann2011-06-022-0/+83
| | | | | | | | | | | | PHPBB3-10005
* | | Merge branch 'ticket/bantu/10042' into develop-olympusNils Adermann2011-06-051-0/+46
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | * ticket/bantu/10042: [ticket/10042] GD CAPTCHA: Call phpbb_mt_rand() where required. [ticket/10042] GD CAPTCHA: Round offset to the next pixel. [ticket/10042] Add mt_rand() wrapper which allows swapping $min and $max.
| * | [ticket/10042] Add mt_rand() wrapper which allows swapping $min and $max.Andreas Fischer2011-03-051-0/+46
| | | | | | | | | | | | PHPBB3-10042
* | | [ticket/9685] Test for databases that are able to nest transactionsNils Adermann2011-06-021-0/+24
| |/ |/| | | | | | | | | | | | | | | If a database is unable to nest transactions the dbal should implement sql_buffer_nested_transactions to signal that buffering of the outer results and closing of the outer transaction is required to open the inner transaction. PHPBB3-9685
* | [ticket/9751] Password requirement "Must contain letters and numbers" failsrxu2011-04-011-0/+81
| | | | | | | | PHPBB3-9751
* | 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
* | | [ticket/10101] Add test case for native phpass hashesIgor Wiedler2011-03-201-0/+21
| | | | | | | | | | | | PHPBB3-10101
* | | [ticket/10088] Also ignore DBMS versions other than MySQLi in cache mock.Andreas Fischer2011-03-121-0/+5
|/ / | | | | | | PHPBB3-10088
* | [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
* | [ticket/10040] Ensure the test suite runs on PHP 5.2 without E_DEPRECATED.Nils Adermann2011-03-071-0/+4
|/ | | | PHPBB3-10040
* [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
* [task/session-tests] Make the session id replacement of dataset values clearerNils Adermann2011-02-271-12/+32
| | | | PHPBB3-9732
* [ticket/10060] Fix test suite under MySQLIgor Wiedler2011-02-251-1/+1
| | | | | | | Regression from PHPBB3-10043, a typo caused the database tests to fail under MySQL. PHPBB3-10060
* [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
* [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
* [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
* 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
* | [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
* [task/session-tests] Renamed assertSqlResultEquals and fixed its param orderNils Adermann2011-01-211-1/+1
| | | | PHPBB3-9732