aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework
Commit message (Collapse)AuthorAgeFilesLines
* [task/mssql-db-tests] Split up database tests into SELECT and write operationsNils Adermann2010-10-251-5/+5
| | | | | | | SELECT is based on the user table fixture, write (INSERT/UPDATE/DELETE) is tested using the config table fixture. PHPBB3-9868
* [task/mssql-db-tests] Add support for odbc & sqlsrv PDO test connectionsNils Adermann2010-10-251-6/+94
| | | | PHPBB3-9868
* [task/mssql-db-tests] Refactored getConnection into multiple smaller parts.Nils Adermann2010-10-251-51/+84
| | | | | | | This is a first step to simplify the extraction of database specific code parts into separate classes. PHPBB3-9868
* [task/mssql-db-tests] Allow test configuration with environment variables.Nils Adermann2010-10-251-1/+12
| | | | | | | | | 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
* [task/mssql-db-tests] No longer display an error when skipping db tests.Nils Adermann2010-10-252-70/+46
| | | | | | | | | | | | | 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
* [task/mssql-db-tests] Use a simple getter for test case helpers.Nils Adermann2010-10-252-10/+10
| | | | | | | | 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
* [ticket/9855] Do not include the PHPUnit Framework manually on 3.5+.Nils Adermann2010-10-171-2/+6
| | | | PHPBB3-9855
* [ticket/9825] Unit tests: Use sqlite when possible and no test_config exists.Andreas Fischer2010-09-161-11/+26
| | | | PHPBB3-9825
* [ticket/9592] Slight adjustments to simplify db test casesIgor Wiedler2010-09-151-11/+8
| | | | PHPBB3-9592
* [ticket/9592] Test suite does not run on SQliteIgor Wiedler2010-09-111-11/+47
| | | | PHPBB3-9592
* [feature/dbal-tests] Remove hardcoded 'mysql' from PDO DSN in DBAL test.Andreas Fischer2010-04-021-1/+1
|
* [feature/dbal-tests] Fix mysql (not mysqli) dbal test.Andreas Fischer2010-04-021-2/+4
| | | | Correctly determine MySQL version from the database.
* [feature/dbal-tests] Only output the missing config error message once.Nils Adermann2010-04-011-6/+18
| | | | | The error message was also not properly escaping the variables, thus producing an incorrect example configuration file.
* [feature/dbal-tests] Make the PDO prefix depend on the dbms.Nils Adermann2010-04-011-3/+13
| | | | | | 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!
* [feature/dbal-tests] Fix whitespace and line endings.Nils Adermann2010-04-011-2/+2
|
* [feature/dbal-tests] Make some tests for build_array_data on SELECTJoas Schilling2010-03-271-1/+68
|
* [feature/dbal-tests] Load phpbb-schema after creating the connection to the ↵Joas Schilling2010-03-262-3/+53
| | | | database
* [feature/dbal-tests] Added database test & refactored test frameworkJoas Schilling2010-03-264-20/+137
| | | | | | 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.
* [develop-olympus] Backported 3.1 unit tests to 3.0.Nils Adermann2010-03-102-0/+73
Start adding unit tests for bugs you fix! Tests for anything are welcome really. We have to work on these a lot.