| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
SELECT is based on the user table fixture, write (INSERT/UPDATE/DELETE) is
tested using the config table fixture.
PHPBB3-9868
|
|
|
|
| |
PHPBB3-9868
|
|
|
|
| |
PHPBB3-9868
|
|
|
|
|
|
|
| |
This is a first step to simplify the extraction of database specific code
parts into separate classes.
PHPBB3-9868
|
|
|
|
|
|
|
|
|
| |
To allow execution of the tests with different configurations without having
to use the test_config.php file, environment variables of the form
PHPBB_TEST_<name> can now be used, e.g. PHPBB_TEST_DBMS to set the variables
otherwise expected in test_config.php
PHPBB3-9868
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Tests are run with sqlite by default now anyway, so in the majority of cases
the error message explaining how to set up database test running will not be
displayed anyway. Database tests are now generally simply skipped if no
configuration can be found. The RUNNING_TESTS.txt file explains how to set
them up however, and more info is available on the wiki.
The get_database_config method was moved from test_case_helpers to
database_test_case because it has no general purpose.
PHPBB3-9868
|
|
|
|
|
|
|
|
| |
Calling initialisation to then use the member directly seems more
complicated than just having a method that returns the instance or
creates it if necessary.
PHPBB3-9868
|
|
|
|
| |
PHPBB3-9855
|
|
|
|
| |
PHPBB3-9855
|
|
|
|
| |
PHPBB3-9825
|
|
|
|
| |
PHPBB3-9592
|
|
|
|
|
|
| |
They failed under SQLite because SQLite accepts empty IN() syntax.
PHPBB3-9592
|
|
|
|
| |
PHPBB3-9592
|
|
|
|
| |
PHPBB3-9780
|
|
|
|
|
|
|
| |
Tests for existing and non-existing records of the types:
MX, A, AAAA, NS, CNAME, TXT
PHPBB3-9599
|
|
|
|
| |
PHPBB3-9599
|
|\
| |
| |
| |
| |
| | |
* ticket/ckwalsh/9715:
[ticket/9715] Better email regex
[ticket/9715] Extend email unit tests
|
| |
| |
| |
| |
| |
| | |
Adding more email tests for a wider range of valid email formats.
PHPBB3-9715
|
|\ \
| | |
| | |
| | |
| | | |
* ticket/bantu/9714:
[ticket/9714] Use correct variable name in email regular expression tests.
|
| |/
| |
| |
| | |
PHPBB3-9714
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The template tests disable NOTICEs for the duration of template execution since
the current version of the template engine does not generate sufficiently clean
code. The error level is reset aftwards, however that part is skipped when
trigger_error is called which is converted into a regular exception by PHPUnit
and passed down until caught. Such exceptions are now caught to reset the error
level, and then the exception is rethrown.
This uncovered another issue in the template tests which only passed because
NOTICEs were unintentionally disabled at this point. assign_display is also
required to operate without NOTICEs. The respective code has been added around
its callee as well. However no handling of exceptions takes place there. If
another test checking for errors in that function is ever added similar catch
logic will have to be added there.
PHPBB3-9701
|
|\
| |
| |
| |
| | |
* ticket/p/9593:
[ticket/9593] A readme file for unit tests and running unit tests.
|
| |
| |
| |
| |
| |
| |
| | |
Added a readme file explaining prerequisites for unit tests, and how to run
unit tests.
PHPBB3-9593
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* ticket/bantu/9626:
[ticket/9626] Adding tests for the URL regular expression.
[ticket/9626] Add missing class prefix.
[ticket/9626] A few tests for the email regular expression.
[ticket/9626] More IPv6 regex tests.
[ticket/9626] Adding tests for the IPv4 regular expression.
[ticket/9626] Adding tests for regular expressions.
|
| | |
| | |
| | |
| | | |
PHPBB3-9626
|
| | |
| | |
| | |
| | | |
PHPBB3-9626
|
| | |
| | |
| | |
| | | |
PHPBB3-9626
|
| | |
| | |
| | |
| | | |
PHPBB3-9626
|
| | |
| | |
| | |
| | | |
PHPBB3-9626
|
| |/
| |
| |
| |
| |
| | |
Adding tests for the IPv6 regular expression returned by get_preg_expression()
PHPBB3-9626
|
| |
| |
| |
| |
| |
| | |
resolved a bug caused by a missing order-by.
PHPBB3-9625
|
| |
| |
| |
| | |
PHPBB3-9625
|
| |
| |
| |
| | |
PHPBB3-9625
|
| |
| |
| |
| | |
PHPBB3-9625
|
| |
| |
| |
| | |
PHPBB3-9625
|
|/
|
|
| |
PHPBB3-9625
|
| |
|
|
|
|
| |
Correctly determine MySQL version from the database.
|
|
|
|
|
| |
The error message was also not properly escaping the variables, thus
producing an incorrect example configuration file.
|
|
|
|
|
|
| |
The database base test will need a few more changes to run on all the
databases we support. But those really need to be made on a system where
they run and can be tested. Patches welcome!
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
database
|
| |
|
|
|
|
|
|
| |
There is now a phpbb_database_test_case which can be used as a base class for tests that require database access. You have to set up a test_config.php file in your tests/ directory containing host, user, pass etc.
Extra test functionality has been moved to phpbb_test_case_helpers to provide the same functionality in database tests and regular tests without duplicating the code. This is achieved through delegation of method calls.
|
| |
|
|
Start adding unit tests for bugs you fix! Tests for anything are
welcome really. We have to work on these a lot.
|