Nils Adermann
96eab49a7a
[ticket/10247] Add a db_tools test for the removal of a primary key column.
...
The previous drop column test already deleted the primary key, so that one was
replaced with an ordinary column.
PHPBB3-10247
2011-07-03 18:09:56 -04:00
Nils Adermann
4e0717b4d7
[ticket/9892] Correct copyright year
...
PHPBB3-9892
2011-06-12 12:26:49 +02:00
Nils Adermann
11750bdccc
[ticket/9892] Remove incorrect use of camel case
...
PHPBB3-9892
2011-06-12 12:24:57 +02:00
Nils Adermann
025649e14c
[ticket/9892] Adding a number of tests for db_tools
...
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
2011-06-12 10:34:43 +02:00
Nils Adermann
28801d0198
[ticket/10206] Failed unicode.org downloads no longer terminate tests
...
Instead a warning is triggered and an explanation echo'd.
PHPBB3-10206
2011-06-10 02:16:19 +02:00
Nils Adermann
928ee43881
Merge branch 'ticket/rxu/217' into develop-olympus
...
* 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
2011-06-09 22:39:28 +02:00
Andreas Fischer
f7578e29b3
Merge remote-tracking branch 'naderman/ticket/10005' into develop-olympus
...
* naderman/ticket/10005:
[ticket/10005] Add description to test cases
[ticket/10005] Add validation of dropdown custom profile field values
2011-06-09 12:47:26 +02:00
Oleg Pudeyev
c93164db58
[ticket/217] Use positive assertions in tests.
...
PHPBB3-217
2011-06-06 21:16:47 +08:00
Oleg Pudeyev
2d1e426ba7
[ticket/217] Silence errors in tests, not code.
...
Use a mock user object for testing bbcode.
PHPBB3-217
2011-06-06 21:14:10 +08:00
rxu
d44b6ba5ca
[ticket/217] Use positive parameter statement for bbcode_init()
...
PHPBB3-217
2011-06-06 00:53:54 +08:00
rxu
6585d938d2
[ticket/217] Adjust patch, add tests
...
PHPBB3-217
2011-06-06 00:53:53 +08:00
Nils Adermann
893d0ae96f
Merge branch 'ticket/bantu/10042' into develop-olympus
...
* 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.
2011-06-05 03:22:09 +02:00
Nils Adermann
a2b6605ce8
[ticket/10005] Add description to test cases
...
PHPBB3-10005
2011-06-03 03:12:13 +02:00
Nils Adermann
7b10f859de
[ticket/10005] Add validation of dropdown custom profile field values
...
PHPBB3-10005
2011-06-02 08:49:59 +02:00
Nils Adermann
f0287f7e57
[ticket/9685] Test for databases that are able to nest transactions
...
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
2011-06-02 06:09:21 +02:00
rxu
a835189823
[ticket/9751] Password requirement "Must contain letters and numbers" fails
...
PHPBB3-9751
2011-04-01 15:10:29 +02:00
Oleg Pudeyev
df6ce22fa3
Merge branch 'ticket/bantu/10082' into develop-olympus
...
* ticket/bantu/10082:
[ticket/10082] session_id is CHAR(32) not VARCHAR(32), so give them a CHAR(32).
2011-03-23 20:30:23 -04:00
Igor Wiedler
4c3cc152c8
[ticket/10101] Add test case for native phpass hashes
...
PHPBB3-10101
2011-03-20 22:52:31 +01:00
Andreas Fischer
d36f78b9f1
[ticket/10082] session_id is CHAR(32) not VARCHAR(32), so give them a CHAR(32).
...
This fixes session unit tests on PostgreSQL in particular.
PHPBB3-10082
2011-03-19 23:20:41 +01:00
Andreas Fischer
7a39bdef89
[ticket/10088] Also ignore DBMS versions other than MySQLi in cache mock.
...
PHPBB3-10088
2011-03-12 15:26:09 +01:00
Marek A. Ruszczynski
b835f364f5
[ticket/10081] remove $phpEx.
...
PHPBB3-10081
2011-03-07 18:50:18 +01:00
Marek A. Ruszczynski
7147382e9e
[ticket/10081] Cleanup Template Tests.
...
There are no incomplete template tests anymore.
PHPBB3-10081
2011-03-07 18:26:46 +01:00
Nils Adermann
dec9d24392
[ticket/10040] Ensure the test suite runs on PHP 5.2 without E_DEPRECATED.
...
PHPBB3-10040
2011-03-07 16:25:52 +01:00
Andreas Fischer
5ab4dc2983
[ticket/10042] Add mt_rand() wrapper which allows swapping $min and $max.
...
PHPBB3-10042
2011-03-05 22:16:50 +01:00
Nils Adermann
921603b09e
[task/session-tests] Make result check independent of returned row order.
...
PHPBB3-9732
2011-02-27 22:20:36 +01:00
Nils Adermann
7255ef4f6d
[task/session-tests] By default the cache check now skips over db server info
...
PHPBB3-9732
2011-02-27 22:17:03 +01:00
Nils Adermann
bbf3864cb4
[task/session-tests] Correctly display message on session continue test failure
...
PHPBB3-9732
2011-02-27 22:16:39 +01:00
Nils Adermann
3d65c3c104
[task/session-tests] Make the session id replacement of dataset values clearer
...
PHPBB3-9732
2011-02-27 22:06:01 +01:00
Igor Wiedler
c8ad006b71
[ticket/10060] Fix test suite under MySQL
...
Regression from PHPBB3-10043, a typo caused the database tests to fail
under MySQL.
PHPBB3-10060
2011-02-25 16:37:20 +01:00
Nils Adermann
cb56ab2dbd
[ticket/10052] Add comments to the session testable factory.
...
PHPBB3-10052
2011-02-23 22:17:12 +01:00
Nils Adermann
11262afa93
[ticket/10052] Correct session tests, and separate session factory from tests
...
PHPBB3-10052
2011-02-23 18:33:20 +01:00
Oleg Pudeyev
6902ecf6a9
[ticket/10049] Mark session init test incomplete for now.
...
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
2011-02-20 08:53:15 -05:00
Oleg Pudeyev
c1e198e721
[ticket/10049] Mark session continue test incomplete for now.
...
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
2011-02-20 08:45:59 -05:00
Oleg Pudeyev
f3ab9da0e9
[ticket/10049] Globalize $_SID.
...
PHPBB3-10049
2011-02-19 20:54:34 -05:00
Oleg Pudeyev
26b922ac3f
[ticket/10049] Chase assertResultEquals rename.
...
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
2011-02-19 20:54:08 -05:00
Oleg Pudeyev
0cf741f343
[ticket/10049] Fixed requires in session tests and mock.
...
PHPBB3-10049
2011-02-19 20:40:32 -05:00
Oleg Pudeyev
1abf7ad809
[ticket/10049] Renamed session test files to proper file names.
...
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
2011-02-19 20:30:46 -05:00
Oleg Pudeyev
bd8e5ff79e
[task/refactor-db-testcase] Further improve error messages.
...
PHPBB3-10043
2011-02-15 21:08:33 -05:00
Igor Wiedler
d3718bf5d4
[task/refactor-db-testcase] Do not show db password on connect error
...
PHPBB3-10043
2011-02-14 15:25:05 +01:00
Igor Wiedler
17b17bc939
[task/refactor-db-testcase] Improve error message of db tests
...
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
2011-02-14 14:48:42 +01:00
Igor Wiedler
6c7f49f561
[task/refactor-db-testcase] Refactor phpbb_database_test_case
...
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
2011-02-14 00:24:55 +01:00
Andreas Fischer
df78a3a62d
Merge branch 'ticket/nickvergessen/9949' into develop-olympus
...
* ticket/nickvergessen/9949:
[ticket/9949] Unit tests for user::lang()
[ticket/9949] $user->lang() uses last int-value to get the key not first
2011-02-07 16:30:43 +01:00
Andreas Fischer
3c04e6db97
[ticket/9949] Unit tests for user::lang()
...
PHPBB3-9949
2011-02-07 16:29:53 +01:00
Erik Frèrejean
14891cdf4e
[ticket/10011] Tests don't work on PHP < 5.3
...
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
2011-01-31 12:58:18 +01:00
Nils Adermann
cd694e9b9d
[task/session-tests] Renamed assertSqlResultEquals and fixed its param order
...
PHPBB3-9732
2011-01-21 21:32:31 +01:00
Nils Adermann
8538561b31
[task/session-tests] Test additional combinations of session_begin.
...
PHPBB3-9732
2011-01-20 22:49:38 +01:00
Nils Adermann
74f537e89d
[task/session-tests] Added tests for the session class.
...
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
2011-01-20 22:47:48 +01:00
Andreas Fischer
97be6e7946
[ticket/9933] Add $use_unicode parameter to get_censor_preg_expression().
...
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
2011-01-16 20:13:05 +01:00
Igor Wiedler
42cf9a9895
[ticket/9990] Add docs for running slow tests
...
PHPBB3-9990
2011-01-12 02:22:37 +01:00
Igor Wiedler
e00c5544d2
[ticket/9990] Integrate utf normalizer tests into test suite
...
PHPBB3-9990
2011-01-11 01:06:01 +01:00