aboutsummaryrefslogtreecommitdiffstats
path: root/tests/dbal
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/11469] Add more table status assertions.Andreas Fischer2013-03-281-0/+2
| | | | PHPBB3-11469
* [ticket/11469] Remove comments. Method names should be good enough now.Andreas Fischer2013-03-281-27/+0
| | | | PHPBB3-11469
* [ticket/11469] Do not repeat markTestSkipped() message.Andreas Fischer2013-03-281-12/+11
| | | | PHPBB3-11469
* [ticket/11469] Refactor get_three_rows() into get_rows($n).Andreas Fischer2013-03-281-8/+9
| | | | PHPBB3-11469
* [ticket/11469] Fix spacing in getDataSet().Andreas Fischer2013-03-281-1/+1
| | | | PHPBB3-11469
* [ticket/11469] Do not repeat assert_config_count(2). Also move to setUp().Andreas Fischer2013-03-281-12/+1
| | | | PHPBB3-11469
* [ticket/11469] Use setUp() to setup DB and a buffer with size 2.Andreas Fischer2013-03-281-57/+47
| | | | PHPBB3-11469
* [ticket/11469] Do not repeat row generation.Andreas Fischer2013-03-281-45/+18
| | | | PHPBB3-11469
* [ticket/11469] Do not repeat array with three rows.Andreas Fischer2013-03-281-34/+23
| | | | PHPBB3-11469
* [ticket/11469] Move protected method to end of test file.Andreas Fischer2013-03-281-9/+9
| | | | PHPBB3-11469
* [ticket/11469] Check return values of the functionsJoas Schilling2013-03-271-19/+19
| | | | PHPBB3-11469
* [ticket/11469] Split tests and skip multi_insert if unavailableJoas Schilling2013-03-271-44/+95
| | | | PHPBB3-11469
* [ticket/11469] Use method to check config count, instead of repeating itJoas Schilling2013-03-271-45/+18
| | | | PHPBB3-11469
* [ticket/11469] Add some basic unit tests for phpbb_db_sql_insert_bufferJoas Schilling2013-03-271-0/+176
| | | | PHPBB3-11469
* [ticket/11443] Fix Migrator Modules Tool by creating a phpbb_log objectJoas Schilling2013-03-161-1/+6
| | | | PHPBB3-11443
* [ticket/11443] Add _test suffix to migration test filenamesJoas Schilling2013-03-152-0/+0
| | | | PHPBB3-11443
* [ticket/11386] Send list of migrations instead of using load_migrationsNathaniel Guse2013-03-031-10/+10
| | | | | | | | | Remove dependency of extension manager for migrator. Keeping load_migrations function for others to use if they desire but requiring the finder be sent to it in order to use it. PHPBB3-11386
* [ticket/11386] Fix failing tests from constructor changesNathaniel Guse2013-03-021-2/+3
| | | | PHPBB3-11386
* [ticket/11386] Update tests with new constructors for ext.manager/migratorNathaniel Guse2013-03-021-1/+20
| | | | PHPBB3-11386
* [feature/migrations] Function effectively_installed() in migrationsNathan Guse2013-01-132-0/+51
| | | | | | | | | | | | Allows you to check if the migration is effectively installed (entirely optionall) This function is intended to help moving to migrations from a previous database updater, where some migrations may have been installed already even though they are not yet listed in the migrations table. PHPBB3-9737
* [feature/migrations] Make the test depends_on methods staticNathan Guse2013-01-107-23/+3
| | | | PHPBB3-11318
* [feature/migrations] Store depends on in the database (serialized)Nathan Guse2013-01-103-14/+91
| | | | | | | | | | | | | | This is required so that when migrations are reverted we can check through all installed migrations and make sure that all dependencies are handled properly and so that we are only required to load the migrations files that could be dependent on the ones installed. I believe in normal proper use the old way might have worked, but in case something happens and an unrelated migration file is installed, but cannot be loaded, this makes sure we do not stop everything unless we absolutely must (one of those files is dependent on something we want to revert). PHPBB3-9737
* [feature/migrations] Basic reverting testNathan Guse2013-01-103-0/+115
| | | | PHPBB3-9737
* [feature/migrations] Test for calling a step multiple timesNathan Guse2013-01-102-0/+66
| | | | | | | | | This is used when a long-running process is needed during an update. For example, iterating over all posts and applying some transformation. This allows the process to be broken apart into multiple shorter steps to prevent hitting the time limit. PHPBB3-9737
* [feature/migrations] Reverse data functionalityNathan Guse2013-01-093-4/+76
| | | | | | | | | If data step fails, attempt to roll back any previous calls from the migration that failed. Fix some failing tests PHPBB3-9737
* [feature/migrations] Fix if method (and create a test for it)Nathan Guse2013-01-093-19/+79
| | | | PHPBB3-9737
* [feature/migrations] Migrations now somewhat worksNathan Guse2013-01-096-3/+443
| | | | PHPBB3-9737
* [feature/migrations] Process migration steps and move to PHP5 codeNils Adermann2013-01-091-1/+8
|
* [feature/migrations] Standard vars for migrations and run sql with feedbackNils Adermann2013-01-091-1/+1
| | | | PHPBB3-9737
* [feature/migrations] Return schema changes in database update style arrayNils Adermann2013-01-091-1/+7
| | | | | | | Returning the set of schema changes allows potentially aggregating to generate the overall install schema automatically from a set of migrations PHPBB3-9737
* [feature/migrations] Store start and end time of migrationsNils Adermann2013-01-091-6/+27
| | | | PHPBB3-9737
* [feature/migrations] Basic migrations with schema and data changesNils Adermann2013-01-094-0/+159
| | | | | | | | The migrator takes care of applying migrations as necessary. RFC: http://area51.phpbb.com/phpBB/viewtopic.php?f=84&t=41337 PHPBB3-9737
* [ticket/11015] Convert connect test to the new syntax.Oleg Pudeyev2012-12-131-3/+1
| | | | PHPBB3-11015
* Merge remote-tracking branch 'p/ticket/11255' into developAndreas Fischer2012-12-081-0/+4
|\ | | | | | | | | | | * p/ticket/11255: [ticket/11255] Change search tests to use mock cache. [ticket/11255] Fix dbal write sequence test to run standalone.
| * [ticket/11255] Fix dbal write sequence test to run standalone.Oleg Pudeyev2012-12-071-0/+4
| | | | | | | | PHPBB3-11255
* | Merge branch 'develop-olympus' into developAndreas Fischer2012-12-081-0/+43
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10205] Reduce nesting in mysql drivers. [ticket/10205] Rewrite _sql_error implementations to have a single return. [ticket/10205] Cosmetic changes. [ticket/10205] Add some columns to the empty fixture file for mssqlnative. [ticket/10205] Delete stray return. [ticket/10205] Test failed connection attempts. [ticket/10205] Check for function existence in mssql connect method. [ticket/10205] Convert mssqlnative driver to the same logic. [ticket/10205] Fix a parse error in oracle driver. [ticket/10205] Fix remaining db drivers. [ticket/10205] Avoid calling mysqli functions when mysqli is missing. [ticket/10205] Account for potentially missing extensions in dbal. Conflicts: tests/fixtures/empty.xml
| * Merge remote-tracking branch 'p/ticket/10205' into develop-olympusAndreas Fischer2012-12-081-0/+43
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p/ticket/10205: [ticket/10205] Reduce nesting in mysql drivers. [ticket/10205] Rewrite _sql_error implementations to have a single return. [ticket/10205] Cosmetic changes. [ticket/10205] Add some columns to the empty fixture file for mssqlnative. [ticket/10205] Delete stray return. [ticket/10205] Test failed connection attempts. [ticket/10205] Check for function existence in mssql connect method. [ticket/10205] Convert mssqlnative driver to the same logic. [ticket/10205] Fix a parse error in oracle driver. [ticket/10205] Fix remaining db drivers. [ticket/10205] Avoid calling mysqli functions when mysqli is missing. [ticket/10205] Account for potentially missing extensions in dbal.
| | * [ticket/10205] Cosmetic changes.Oleg Pudeyev2012-12-041-1/+2
| | | | | | | | | | | | PHPBB3-10205
| | * [ticket/10205] Delete stray return.Oleg Pudeyev2012-12-041-2/+0
| | | | | | | | | | | | PHPBB3-10205
| | * [ticket/10205] Test failed connection attempts.Oleg Pudeyev2012-12-041-0/+44
| | | | | | | | | | | | PHPBB3-10205
* | | Merge PR #1101 branch 'develop-olympus' into developOleg Pudeyev2012-12-061-0/+55
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/11219] Coding guidelines and naming consistency changes [ticket/11219] Only update sequences that are affected by a fixture [ticket/11219] Recreate Oracle sequences instead of altering them [ticket/11219] Add unit test for inserting into a sequence column [ticket/11219] Update sequence values after loading fixtures
| * | [ticket/11219] Coding guidelines and naming consistency changesPatrick Webster2012-12-051-1/+1
| | | | | | | | | | | | PHPBB3-11219
| * | [ticket/11219] Add unit test for inserting into a sequence columnJoas Schilling2012-11-191-0/+55
| |/ | | | | | | PHPBB3-11219
* | Merge remote-tracking branch 'github-phpbb/develop-olympus' into HEADNils Adermann2012-11-061-2/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | * github-phpbb/develop-olympus: [ticket/11159] static public is the currently approved order. Conflicts: tests/dbal/select_test.php tests/dbal/write_test.php tests/request/request_var_test.php tests/security/extract_current_page_test.php tests/security/redirect_test.php tests/template/template_test.php tests/text_processing/make_clickable_test.php tests/utf/utf8_clean_string_test.php
| * [ticket/11159] static public is the currently approved order.Oleg Pudeyev2012-11-062-10/+10
| | | | | | | | PHPBB3-11159
* | [ticket/10942] Avoid possible conflicts with magic words in unit testsJoas Schilling2012-07-161-12/+12
| | | | | | | | PHPBB3-10942
* | [ticket/10942] Fix up unit tests for sql_case()Joas Schilling2012-07-021-11/+28
| | | | | | | | PHPBB3-10942
* | [ticket/10942] Make unit tests for sql_case simplerJoas Schilling2012-06-301-31/+19
| | | | | | | | PHPBB3-10942
* | [ticket/10942] Rename method sql_conditional() to sql_case()Joas Schilling2012-06-201-5/+5
| | | | | | | | PHPBB3-10942
* | [ticket/10942] Fix function name on order_lower_test.phpJoas Schilling2012-06-201-1/+1
| | | | | | | | PHPBB3-10942