| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| |
| |
| | |
develop
* github-igorw/feature/functional-tests:
[feature/functional-tests] Introduce bootstrap method
[feature/functional-tests] Make sure functional tests only install once
|
| |
| |
| |
| | |
PHPBB3-10414
|
| |
| |
| |
| |
| |
| |
| | |
The functional test setup bootstrapping should only be run once per
class.
PHPBB3-10414
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* develop-olympus:
[ticket/10349] Removed duplicated functions from schema loading in tests
[ticket/10349] Update function comment
[ticket/10349] Use new schema comment function in installer
[ticket/10349] Unit tests: Consolidate schema comment removal functions
[ticket/10349] Unit tests: Remove comments while loading schema files
|
| |\ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* Noxwizard/ticket/10349:
[ticket/10349] Removed duplicated functions from schema loading in tests
[ticket/10349] Update function comment
[ticket/10349] Use new schema comment function in installer
[ticket/10349] Unit tests: Consolidate schema comment removal functions
[ticket/10349] Unit tests: Remove comments while loading schema files
|
| | | |
| | | |
| | | |
| | | | |
PHPBB3-10349
|
| | | |
| | | |
| | | |
| | | | |
PHPBB3-10349
|
| | | |
| | | |
| | | |
| | | | |
PHPBB3-10349
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Perform the same operations that the installer does when preparing the schema
files. These functions come straight from /includes/functions_install.php and
/includes/functions_admin.php.
PHPBB3-10349
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It does not seem to work on my machine without phar:// even with
phar extension installed.
PHPBB3-10481
|
| | | |
| | | |
| | | |
| | | | |
PHPBB3-10481
|
|\ \ \ \
| |/ / /
| | | |
| | | |
| | | | |
* develop-olympus:
[ticket/10416] Pass dbport to PDO object in ...connection_manager::connect().
|
| |/ /
| | |
| | |
| | | |
PHPBB3-10416
|
| |/
|/|
| |
| | |
PHPBB3-10417
|
| |
| |
| |
| | |
PHPBB3-10414
|
| |
| |
| |
| | |
PHPBB3-10414
|
| |
| |
| |
| |
| |
| | |
The functional tests now also use the test database
PHPBB3-10414
|
| |
| |
| |
| | |
PHPBB3-10414
|
|\ \
| |/
| |
| |
| | |
* develop-olympus:
[ticket/10060] Fix test suite under MySQL
|
| |
| |
| |
| |
| |
| |
| | |
Regression from PHPBB3-10043, a typo caused the database tests to fail
under MySQL.
PHPBB3-10060
|
|\ \
| |/
| |
| |
| |
| |
| |
| | |
* develop-olympus:
[task/refactor-db-testcase] Further improve error messages.
[task/refactor-db-testcase] Do not show db password on connect error
[task/refactor-db-testcase] Improve error message of db tests
[task/refactor-db-testcase] Refactor phpbb_database_test_case
|
| |
| |
| |
| | |
PHPBB3-10043
|
| |
| |
| |
| | |
PHPBB3-10043
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If database tests cannot be run the error message is ambigous. This
commit makes it clearer:
- whether the supplied dbms is supported by us
- which dbms are supported by us
- whether the required PDO extension is loaded
PHPBB3-10043
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Move most of the methods to a separate connection manager class. The
test case creates a manager to handle database creation, schema loading
and more. Most of the methods could be simplified because they can
access shared pdo, config and dbms data.
PHPBB3-10043
|
| |
| |
| |
| | |
PHPBB3-10013
|
|/
|
|
| |
PHPBB3-10013
|
|
|
|
|
|
|
|
| |
Due to the usage of `__DIR__` for the file includes the tests can't
be ran on systems with PHP < 5.3. Replace all occurances of
`__DIR__` with `dirname(__FILE__)`.
PHPBB3-10011
|
|
|
|
| |
PHPBB3-9732
|
|
|
|
|
|
|
|
|
|
|
| |
Two first simple tests to check functionality of session_begin and
session_create.
Added a mock class for the cache as well as a subclass of session
which has its cookie handling function mocked out to avoid header
sending problems.
PHPBB3-9732
|
|
|
|
|
|
|
|
|
|
|
| |
The blacklisting of these static variables is necessary because code coverage
will otherwise consume too much memory. The problem did not exist in earlier
PHPUnit versions because all classes beginning with PHPUnit are automatically
blacklisted, and code coverage as well as a few other internal classes were
still internal parts of PHPunit. These were now moved to PHP_ namespace,
causing the problem with backupStaticAttributes.
PHPBB3-9967
|
|
|
|
| |
PHPBB3-9967
|
|
|
|
|
|
|
| |
SELECT is based on the user table fixture, write (INSERT/UPDATE/DELETE) is
tested using the config table fixture.
PHPBB3-9868
|
|
|
|
| |
PHPBB3-9868
|
|
|
|
|
|
|
| |
This is a first step to simplify the extraction of database specific code
parts into separate classes.
PHPBB3-9868
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
PHPBB3-9855
|
|
|
|
| |
PHPBB3-9825
|
|
|
|
| |
PHPBB3-9592
|
|
|
|
| |
PHPBB3-9592
|
| |
|
|
|
|
| |
Correctly determine MySQL version from the database.
|
|
|
|
|
| |
The error message was also not properly escaping the variables, thus
producing an incorrect example configuration file.
|
|
|
|
|
|
| |
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!
|
| |
|
| |
|
|
|
|
| |
database
|
|
|
|
|
|
| |
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.
|