aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* [task/mssql-db-tests] Split up database tests into SELECT and write operationsNils Adermann2010-10-255-178/+200
| | | | | | | 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] PHPUnit output got stuck after unterminated ob_start.Nils Adermann2010-10-251-0/+1
| | | | 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-252-2/+19
| | | | | | | | | 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-253-76/+70
| | | | | | | | | | | | | 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/9855] Make tests run under PHPUnit 3.5.Nils Adermann2010-10-171-1/+8
| | | | 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] Remove test cases for empty IN()Igor Wiedler2010-09-121-2/+3
| | | | | | They failed under SQLite because SQLite accepts empty IN() syntax. PHPBB3-9592
* [ticket/9592] Test suite does not run on SQliteIgor Wiedler2010-09-111-11/+47
| | | | PHPBB3-9592
* [ticket/9780] Adding unit tests for gen_rand_string().Andreas Fischer2010-08-203-0/+105
| | | | PHPBB3-9780
* [ticket/9599] Adding tests for phpbb_checkdnsrr().Andreas Fischer2010-08-032-0/+67
| | | | | | | Tests for existing and non-existing records of the types: MX, A, AAAA, NS, CNAME, TXT PHPBB3-9599
* [ticket/9599] Adding network function tests.Andreas Fischer2010-08-032-0/+38
| | | | PHPBB3-9599
* Merge branch 'ticket/ckwalsh/9715' into develop-olympusAndreas Fischer2010-07-121-0/+41
|\ | | | | | | | | | | * ticket/ckwalsh/9715: [ticket/9715] Better email regex [ticket/9715] Extend email unit tests
| * [ticket/9715] Extend email unit testsCullen Walsh2010-07-111-1/+42
| | | | | | | | | | | | Adding more email tests for a wider range of valid email formats. PHPBB3-9715
* | Merge branch 'ticket/bantu/9714' into develop-olympusAndreas Fischer2010-07-121-1/+1
|\ \ | | | | | | | | | | | | * ticket/bantu/9714: [ticket/9714] Use correct variable name in email regular expression tests.
| * | [ticket/9714] Use correct variable name in email regular expression tests.Andreas Fischer2010-07-081-1/+1
| |/ | | | | | | PHPBB3-9714
* | [ticket/9701] Prevent notices from being hidden by template testsNils Adermann2010-07-081-3/+21
|/ | | | | | | | | | | | | | | | | | 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
* Merge branch 'ticket/p/9593' into develop-olympusAndreas Fischer2010-07-081-0/+33
|\ | | | | | | | | * ticket/p/9593: [ticket/9593] A readme file for unit tests and running unit tests.
| * [ticket/9593] A readme file for unit tests and running unit tests.Oleg Pudeyev2010-07-071-0/+33
| | | | | | | | | | | | | | Added a readme file explaining prerequisites for unit tests, and how to run unit tests. PHPBB3-9593
* | Merge branch 'ticket/bantu/9626' into develop-olympusAndreas Fischer2010-06-176-0/+375
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| * | [ticket/9626] Adding tests for the URL regular expression.Andreas Fischer2010-05-252-0/+36
| | | | | | | | | | | | PHPBB3-9626
| * | [ticket/9626] Add missing class prefix.Andreas Fischer2010-05-254-6/+6
| | | | | | | | | | | | PHPBB3-9626
| * | [ticket/9626] A few tests for the email regular expression.Andreas Fischer2010-05-252-0/+80
| | | | | | | | | | | | PHPBB3-9626
| * | [ticket/9626] More IPv6 regex tests.Andreas Fischer2010-05-251-4/+62
| | | | | | | | | | | | PHPBB3-9626
| * | [ticket/9626] Adding tests for the IPv4 regular expression.Andreas Fischer2010-05-252-0/+74
| | | | | | | | | | | | PHPBB3-9626
| * | [ticket/9626] Adding tests for regular expressions.Andreas Fischer2010-05-253-0/+127
| |/ | | | | | | | | | | Adding tests for the IPv6 regular expression returned by get_preg_expression() PHPBB3-9626
* | [feature/dbal-tests] Follow the coding guidelines and ...Joas Schilling2010-06-171-50/+88
| | | | | | | | | | | | resolved a bug caused by a missing order-by. PHPBB3-9625
* | [feature/dbal-tests] Update dataJoas Schilling2010-06-171-0/+42
| | | | | | | | PHPBB3-9625
* | [feature/dbal-tests] Multi insertJoas Schilling2010-06-171-0/+26
| | | | | | | | PHPBB3-9625
* | [feature/dbal-tests] Delete dataJoas Schilling2010-06-171-0/+30
| | | | | | | | PHPBB3-9625
* | [feature/dbal-tests] Insert dataJoas Schilling2010-06-171-0/+34
| | | | | | | | PHPBB3-9625
* | [feature/dbal-tests] Fix SQL-ERROR: invalid input syntax for integer: ""Joas Schilling2010-06-171-16/+8
|/ | | | PHPBB3-9625
* [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-012-21/+21
|
* [feature/dbal-tests] Make some tests for build_array_data on SELECTJoas Schilling2010-03-272-4/+114
|
* [feature/dbal-tests] Make some tests for return_on_error on SELECT-queriesJoas Schilling2010-03-261-8/+208
|
* [feature/dbal-tests] Tests for $db->sql_query_limit()Joas Schilling2010-03-262-1/+47
|
* [feature/dbal-tests] Load phpbb-schema after creating the connection to the ↵Joas Schilling2010-03-262-3/+53
| | | | database
* [feature/dbal-tests] Added tests for dbal fetchrow and fetchfield.Joas Schilling2010-03-264-0/+100
|
* [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] Make this test run on windows with backslash-paths.Joas Schilling2010-03-261-1/+1
|
* [develop-olympus] Backported 3.1 unit tests to 3.0.Nils Adermann2010-03-1029-0/+1766
Start adding unit tests for bugs you fix! Tests for anything are welcome really. We have to work on these a lot.