aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_framework
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'develop-olympus' into developAndreas Fischer2013-04-151-0/+3
|\ | | | | | | | | | | * develop-olympus: [ticket/11493] add checks for Notice and Warning [ticket/11493] add check for phpBB Debug in functional tests
| * [ticket/11493] add checks for Notice and WarningDhruv2013-04-151-0/+2
| | | | | | | | PHPBB3-11493
| * [ticket/11493] add check for phpBB Debug in functional testsDhruv2013-04-151-0/+1
| | | | | | | | PHPBB3-11493
* | [ticket/11492] Fix issues with log objectJoas Schilling2013-04-111-16/+10
| | | | | | | | PHPBB3-11492
* | [ticket/11492] Add tests for removing/adding usersJoas Schilling2013-04-111-1/+51
| | | | | | | | PHPBB3-11492
* | [ticket/11492] Add functional test for empty teampageJoas Schilling2013-04-111-0/+40
| | | | | | | | PHPBB3-11492
* | [ticket/11460] Configure functional test board email using dummy SMTP data.Andreas Fischer2013-03-221-6/+6
| | | | | | | | PHPBB3-11460
* | [ticket/11460] Add methods for checkbox handling to phpbb_functional_test_case.Andreas Fischer2013-03-211-0/+64
| | | | | | | | PHPBB3-11460
* | [ticket/11386] Send list of migrations instead of using load_migrationsNathaniel Guse2013-03-031-11/+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-1/+1
| | | | | | | | PHPBB3-11386
* | [ticket/11386] Update tests with new constructors for ext.manager/migratorNathaniel Guse2013-03-021-2/+15
| | | | | | | | PHPBB3-11386
* | [feature/migrations] Fix failing tests (again)Nathaniel Guse2013-02-131-14/+14
| | | | | | | | PHPBB3-11318
* | [feature/migrations] Make the container available to extension installersNathan Guse2013-02-061-0/+1
| | | | | | | | | | | | | | This allows extensions to load and install migrations easily as per their needs. PHPBB3-11318
* | [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
| * [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
* | [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/10758' into developAndreas Fischer2012-12-251-2/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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] Add a test for acp login.Oleg Pudeyev2012-12-151-2/+4
| | | | | | | | | | | | PHPBB3-10758
* | | [ticket/10758-upload] Convert error to a failure.Oleg Pudeyev2012-12-201-0/+16
|/ / | | | | | | PHPBB3-10758
* | [ticket/11268] Delete phpbb_db_driver_mysql4 as there is no such thing.Oleg Pudeyev2012-12-141-1/+0
| | | | | | | | PHPBB3-11268
* | [ticket/11015] Installer still needs 3.0-style dbms name.Oleg Pudeyev2012-12-131-0/+2
| | | | | | | | PHPBB3-11015
* | Merge remote-tracking branch 'upstream/develop' into ticket/11015Oleg Pudeyev2012-12-131-10/+13
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/develop: [ticket/11262] Add .lock in cache directory to .gitignore [ticket/11265] Add assertions for board installation success. [ticket/11263] Fix PHP Notice: Undefined variable: extension_manager [ticket/10975] Add a test for viewing a profile. [ticket/10975] Test restricting by first character. [ticket/10975] Avoid rewriting global config twice. [ticket/10975] Test memberlist, not user creation. [ticket/10975] Some quick tests to check the memberlist behaviour
| * \ Merge branch 'develop-olympus' into developAndreas Fischer2012-12-131-3/+11
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/11265] Add assertions for board installation success. Conflicts: tests/test_framework/phpbb_functional_test_case.php
| | * [ticket/11265] Add assertions for board installation success.Oleg Pudeyev2012-12-131-3/+11
| | | | | | | | | | | | PHPBB3-11265
| * | [ticket/10975] Avoid rewriting global config twice.Oleg Pudeyev2012-12-131-7/+2
| | | | | | | | | | | | PHPBB3-10975
* | | [ticket/11015] Include functions.php because it is not always included.Oleg Pudeyev2012-12-131-0/+5
| | | | | | | | | | | | PHPBB3-11015
* | | [ticket/11015] Convert database drivers to new spelling in post setup sync.Oleg Pudeyev2012-12-131-2/+2
| | | | | | | | | | | | PHPBB3-11015
* | | Merge remote-tracking branch 'upstream/develop' into ticket/11015Oleg Pudeyev2012-12-131-28/+93
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/develop: (101 commits) [ticket/10491] Make recreate_database static. [ticket/11088] Pass required objects in as arguments [ticket/11088] Globalize objects in new permission function [ticket/11088] Move permission creation to a function [ticket/11088] Copy a_styles permission for a_extensions [ticket/11088] Remove extraneous word from sentence in comment [ticket/11088] Changed "file extensions" to "attachment extensions" [ticket/11088] Fix the database updater to correctly manipulate the modules [ticket/11088] Put language pack module move below extension module creation [ticket/11088] Untested, progress on update script [ticket/11088] Fix typo (period instead of comma) [ticket/11088] Untested progress for update script [ticket/11088] Added missing comma [ticket/11088] Removed added space [ticket/11088] Move style, extension and language pack management to customise [ticket/11243] Show download all link on all pages of topic with attachments [feature/template-events] Pass arguments in correct order. [feature/template-events] Pass arguments in correct order. [ticket/10491] Install board once per test run. [ticket/11257] Do not require set_name() method to exist ...
| * | Merge PR #1119 branch 'develop-olympus' into developOleg Pudeyev2012-12-131-26/+35
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While merging into develop, also move self::$config['table_prefix'] initialization into setup before class from install_board, as install_board is only called to install the board and not for each test case. * develop-olympus: [ticket/10491] Make recreate_database static. [ticket/10491] Install board once per test run. [ticket/10491] Move board installation into setup before class. [ticket/10491] Set up functional tests sensibly. Conflicts: tests/test_framework/phpbb_functional_test_case.php
| | * Merge PR #1119 branch 'p/ticket/10491' into develop-olympusOleg Pudeyev2012-12-131-25/+29
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p/ticket/10491: [ticket/10491] Make recreate_database static. [ticket/10491] Install board once per test run. [ticket/10491] Move board installation into setup before class. [ticket/10491] Set up functional tests sensibly.
| | | * [ticket/10491] Make recreate_database static.Oleg Pudeyev2012-12-121-1/+1
| | | | | | | | | | | | | | | | PHPBB3-10491
| | | * [ticket/10491] Install board once per test run.Oleg Pudeyev2012-12-101-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is how things used to be. Installing for each test class brings 3-4x performance penalty compared to installing once for the entire test run. However, with a single installation for all tests an individual test can see different data when it is invoked by itself vs when it is executed as part of the entire test suite. PHPBB3-10491
| | | * [ticket/10491] Move board installation into setup before class.Oleg Pudeyev2012-12-041-16/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Functional posting test already assumed that board is installed once per test case and not once per test. PHPBB3-10491
| | | * [ticket/10491] Set up functional tests sensibly.Oleg Pudeyev2012-12-041-16/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PHPBB_FUNCTIONAL_URL goes into setup before class. Drop PHPBB_FUNCTIONAL_URL check in board installation and silent return if it is not set. Take board installation out of constructor. Install board in setup method. PHPBB3-10491
| * | | Merge PR #1125 branch 'develop-olympus' into developOleg Pudeyev2012-12-101-2/+58
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10972] Drop user deletion. [ticket/10972] Tweak user addition. [ticket/10972] Add destroy method to mock cache. [ticket/10972] Add mock null cache. [ticket/10972] Backport get_db from develop. [ticket/10972] Added explicit checks for creating duplicate users. [ticket/10972] Moved tests into appropriate places and added comments [ticket/10972] Added methods for creating and deleting basic users Conflicts: tests/mock/cache.php tests/test_framework/phpbb_functional_test_case.php
| | * | [ticket/10972] Drop user deletion.Oleg Pudeyev2012-12-061-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Users should not be deleted in tests that test user creation. Tests should use unique user names to avoid collisions. User deletion should use user_remove anyway. PHPBB3-10972
| | * | [ticket/10972] Tweak user addition.Oleg Pudeyev2012-12-061-25/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Always add users, do not keep track of which users have been added. The tests should know whether users they want exist or not. Use more unique user names in tests for robustness. Added some more assertions here and there. PHPBB3-10972
| | * | [ticket/10972] Backport get_db from develop.Oleg Pudeyev2012-12-061-0/+19
| | | | | | | | | | | | | | | | PHPBB3-10972
| | * | [ticket/10972] Added explicit checks for creating duplicate users.Fyorl2012-12-061-2/+17
| | | | | | | | | | | | | | | | PHPBB3-10972
| | * | [ticket/10972] Moved tests into appropriate places and added commentsFyorl2012-12-061-0/+4
| | | | | | | | | | | | | | | | PHPBB3-10972
| | * | [ticket/10972] Added methods for creating and deleting basic usersFyorl2012-12-061-2/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Modified the login method to allow logging in of an arbitrary user. Also added tests for the new functionality. PHPBB3-10972
* | | | Merge remote-tracking branch 'upstream/develop' into ticket/11015Oleg Pudeyev2012-12-064-1/+190
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/develop: (196 commits) [ticket/11219] Coding guidelines and naming consistency changes [ticket/10841] Revert more whitespace changes. [ticket/10841] Revert whitespace changes. [ticket/10841] adding space after if [ticket/10841] removing unnecessary spacing [ticket/10841] changing affectedrows check to COUNT in sql [ticket/10841] Modifying style and language selectors in UCP [ticket/11247] Fix wrong property reference in flock class. [ticket/10602] Avoid a race condition. [ticket/10602] Use last_queue_run for its intended purpose. [ticket/10716] Collect standard error from executed php process. [ticket/10716] Skip test if php is not in PATH. [ticket/10716] Exclude our dependencies from linting. [ticket/10103] New and improved wording. [ticket/10716] Only lint on php 5.3+. [ticket/10103] Assert with messages. [ticket/10103] assertLessThan/assertGreaterThan. [ticket/10103] Inline assignment is bad? [ticket/10103] $rv had too few characters. [ticket/10103] Correct flock class documentation. ... Conflicts: phpBB/includes/functions.php tests/cache/cache_test.php
| * | | Merge PR #1101 branch 'develop-olympus' into developOleg Pudeyev2012-12-062-1/+126
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-11/+13
| | | | | | | | | | | | | | | | PHPBB3-11219
| | * | [ticket/11219] Only update sequences that are affected by a fixturePatrick Webster2012-12-012-36/+55
| | | | | | | | | | | | | | | | PHPBB3-11219
| | * | [ticket/11219] Recreate Oracle sequences instead of altering themPatrick Webster2012-11-201-53/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous method would always leave a gap between the last value and the new one due to how you have to update the sequence values. To remove gaps in all situations, the options are to alter the USER_SEQUENCES table or just drop the sequence and recreate it. The prior requires elevated priveleges and the latter can break attached objects. Since we don't attach objects to the sequences, we won't have any problems doing it for the tests. PHPBB3-11219
| | * | [ticket/11219] Update sequence values after loading fixturesPatrick Webster2012-11-182-0/+139
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | If a value is provide for an auto_increment type of column, certain DBMSes do not update their internal sequencers. If a row is inserted later, it can be given an ID that is already in use, resulting in an error. The database test cases now resynchronise the sequencers before the tests are run. PHPBB3-11219
| * | [ticket/9983] Add phpbb prefix to global variables.Oleg Pudeyev2012-12-021-4/+4
| | | | | | | | | | | | PHPBB3-9983