aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'EXreaction/feature/migrations' into developDavid King2013-02-0615-0/+1054
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * EXreaction/feature/migrations: (48 commits) [feature/migrations] Remove default values from necessary parameters [feature/migrations] Revert unrelated changes to functions.php [ticket/9737] Fix some comments [ticket/9737] Fix a few minor things in migrations [feature/migrations] Make sure migration data not done before running data step [feature/migrations] Function to populate the migrations table (for install) [feature/migrations] Function effectively_installed() in migrations [feature/migrations] Make load_migrations recursive (optionally) [feature/migrations] Make the test depends_on methods static [feature/migrations] Make depends_on static to call it without dependencies [feature/migrations] install/database_update_migrations.php [feature/migrations] Move test.php -> install/database_update_migrations.php [feature/migrations] Store depends on in the database (serialized) [feature/migrations] Revert method completed [feature/migrations] Basic reverting test [feature/migrations] Test for calling a step multiple times [feature/migrations] Creating revert method to attempt reverting a migration [feature/migrations] Some comments in db_tools [feature/migrations] Reverse data functionality [feature/migrations] Comment ... Conflicts: phpBB/install/schemas/firebird_schema.sql phpBB/install/schemas/mssql_schema.sql phpBB/install/schemas/mysql_40_schema.sql phpBB/install/schemas/mysql_41_schema.sql phpBB/install/schemas/oracle_schema.sql phpBB/install/schemas/postgres_schema.sql phpBB/install/schemas/sqlite_schema.sql
| * [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/11295] Correct cases: replace postgres with phpbb_db_driver_postgres.Andreas Fischer2013-01-251-2/+2
| | | | | | | | PHPBB3-11295
* | Merge branch 'develop-olympus' into developAndreas Fischer2013-01-231-0/+23
|\ \ | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/11295] Drop tables rather than database for postgres in test suite. Conflicts: tests/test_framework/phpbb_database_test_connection_manager.php
| * \ Merge remote-tracking branch 'p/ticket/11295' into develop-olympusAndreas Fischer2013-01-231-2/+25
| |\ \ | | | | | | | | | | | | | | | | * p/ticket/11295: [ticket/11295] Drop tables rather than database for postgres in test suite.
| | * | [ticket/11295] Drop tables rather than database for postgres in test suite.Oleg Pudeyev2012-12-261-2/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Doing so allows: 1. User running the tests no longer needs create database privilege. 2. Test database may be located in a non-default tablespace and generally have site-specific options applied to it. PHPBB3-11295
| * | | Merge remote-tracking branch 'p/ticket/11323-olympus' into develop-olympusAndreas Fischer2013-01-222-0/+9
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * p/ticket/11323-olympus: [ticket/11323] Backport include_define test to olympus.
| | * | | [ticket/11323] Backport include_define test to olympus.Oleg Pudeyev2013-01-132-0/+9
| | | | | | | | | | | | | | | | | | | | PHPBB3-11323
* | | | | [ticket/9492] Fix missing phpbb_container in unit testsJoas Schilling2013-01-201-1/+8
| | | | | | | | | | | | | | | | | | | | PHPBB3-9492
* | | | | [ticket/9492] Add unit tests for custom ranks and avatarsJoas Schilling2013-01-172-0/+270
| | | | | | | | | | | | | | | | | | | | PHPBB3-9492
* | | | | Merge PR #1194 branch 'develop-olympus' into developOleg Pudeyev2013-01-133-1/+25
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | * develop-olympus: [ticket/11323] Add tests for inclusion of defined variables
| * | | | Merge PR #1194 branch 'marc1706/ticket/11323' into develop-olympusOleg Pudeyev2013-01-133-1/+22
| |\ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | # By Marc Alexander # Via Marc Alexander * marc1706/ticket/11323: [ticket/11323] Add tests for inclusion of defined variables
| | * | | [ticket/11323] Add tests for inclusion of defined variablesMarc Alexander2013-01-143-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds 2 tests for the template engine. The test using include_define_variable.html will test if a defined variable, which was defined with another template variable, can be used to include a file. The second test will do the same inside a loop using a loop variable. PHPBB3-11323
* | | | | [ticket/11320] Include functions file as we need phpbb_convert_30_dbms_to_31Nathan Guse2013-01-101-0/+5
| |_|_|/ |/| | | | | | | | | | | PHPBB3-11320
* | | | [ticket/11305] Mock container for cache driver in functional create_user()Igor Wiedler2013-01-021-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | create_user has calls to fetch the cache driver from the container. This PR mocks the container and returns a null cache driver in that case. PHPBB3-11305
* | | | Merge remote-tracking branch 'p/ticket/11037' into developAndreas Fischer2012-12-312-4/+6
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p/ticket/11037: [ticket/11037] Fix unit tests. [ticket/11037] Update services.yml. [ticket/11037] Add/update docblocks. [ticket/11037] Eliminate globals from cache service.
| * | | | [ticket/11037] Fix unit tests.Oleg Pudeyev2012-12-292-4/+6
| | | | | | | | | | | | | | | | | | | | PHPBB3-11037
* | | | | [ticket/11294] Update required/optional extension list for develop.Oleg Pudeyev2012-12-271-0/+3
| | | | | | | | | | | | | | | | | | | | PHPBB3-11294
* | | | | Merge branch 'develop-olympus' into developAndreas Fischer2012-12-261-2/+19
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/11294] Capitalize phpunit. [ticket/11294] Update required/optional extension list for olympus.
| * | | | [ticket/11294] Capitalize phpunit.Oleg Pudeyev2012-12-261-3/+3
| | | | | | | | | | | | | | | | | | | | PHPBB3-11294
| * | | | [ticket/11294] Update required/optional extension list for olympus.Oleg Pudeyev2012-12-251-1/+18
| | |_|/ | |/| | | | | | | | | | PHPBB3-11294
* | | | Merge remote-tracking branch 'p/ticket/10758' into developAndreas Fischer2012-12-253-2/+143
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p/ticket/10758: [ticket/10758] Add return to the other compat function. [ticket/10758] Add periods. [ticket/10758] Yes, only one empty line. [ticket/10758] Add deprecated tags. [ticket/10758] Add compat functions. [ticket/10758] Admin is not working yet. [ticket/10758] Test moderator and admin permissions. [ticket/10758] Check that acl was changed in the test. [ticket/10758] Extract obtain_user_data for the benefit of tests. [ticket/10758] Functional test for changing a user's permission. [ticket/10758] Spelling fix. [ticket/10758] Add a test for acp login. [ticket/10758] Dependency inject parameters into update_foes. [ticket/10758] Dependency inject parameters into cache_moderators.
| * | | [ticket/10758] Admin is not working yet.Oleg Pudeyev2012-12-191-0/+2
| | | | | | | | | | | | | | | | PHPBB3-10758
| * | | [ticket/10758] Test moderator and admin permissions.Oleg Pudeyev2012-12-191-5/+60
| | | | | | | | | | | | | | | | PHPBB3-10758
| * | | [ticket/10758] Check that acl was changed in the test.Oleg Pudeyev2012-12-191-1/+19
| | | | | | | | | | | | | | | | PHPBB3-10758
| * | | [ticket/10758] Functional test for changing a user's permission.Oleg Pudeyev2012-12-151-0/+53
| | | | | | | | | | | | | | | | PHPBB3-10758
| * | | [ticket/10758] Add a test for acp login.Oleg Pudeyev2012-12-152-2/+15
| | | | | | | | | | | | | | | | PHPBB3-10758
* | | | Merge remote-tracking branch 'p/ticket/10758-upload' into developAndreas Fischer2012-12-222-1/+19
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | * p/ticket/10758-upload: [ticket/10758-upload] Mark tests that don't work incomplete. [ticket/10758-upload] Convert error to a failure.
| * | | | [ticket/10758-upload] Mark tests that don't work incomplete.Oleg Pudeyev2012-12-211-0/+2
| | | | | | | | | | | | | | | | | | | | PHPBB3-10758
| * | | | [ticket/10758-upload] Convert error to a failure.Oleg Pudeyev2012-12-202-1/+17
| | | | | | | | | | | | | | | | | | | | PHPBB3-10758
* | | | | Merge remote-tracking branch 'p/ticket/11248' into developAndreas Fischer2012-12-221-54/+54
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * p/ticket/11248: [ticket/11248] Convert line endings to LF - develop edition.
| * | | | | [ticket/11248] Convert line endings to LF - develop edition.Oleg Pudeyev2012-12-071-54/+54
| | | | | | | | | | | | | | | | | | | | | | | | PHPBB3-11248
* | | | | | Merge remote-tracking branch 'p/ticket/11037' into developAndreas Fischer2012-12-221-1/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p/ticket/11037: [ticket/11037] Eliminate global $db usage in cache drivers.
| * | | | | | [ticket/11037] Eliminate global $db usage in cache drivers.Oleg Pudeyev2012-12-201-1/+5
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only time $db is needed in cache drivers is to navigate the result set in sql_save. Pass it as a parameter in that function. PHPBB3-11037
* | | | | | Merge branch 'develop-olympus' into developAndreas Fischer2012-12-201-7/+18
|\ \ \ \ \ \ | |/ / / / / |/| | | / / | | |_|/ / | |/| | | * develop-olympus: [ticket/11285] Use more granularity in dependency checks in compress test
| * | | | [ticket/11285] Use more granularity in dependency checks in compress testOleg Pudeyev2012-12-201-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of the tests can be run without zlib or bz2 extensions present. PHPBB3-11285
* | | | | Merge PR #1147 branch 'marc1706/ticket/10763' into developOleg Pudeyev2012-12-182-31/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * marc1706/ticket/10763: [ticket/10763] Use self when calling get_extension() in filespec class [ticket/10763] Make functions for remote avatars static
| * | | | | [ticket/10763] Make functions for remote avatars staticMarc Alexander2012-12-172-31/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fileupload::image_types() and filespec::get_extension() are called statically while submitting the form for the remote avatar. Make them static as described in the ticket in order to prevent a PHP notice. Also change the tests to use the static functions. PHPBB3-10763