Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2015-03-02 09:09:34 +0300
committermattab <matthieu.aubry@gmail.com>2015-03-02 09:09:34 +0300
commitc21d59edab59a353fd4a5c636c677d0ac0ccb3d6 (patch)
treedebdf66f1579f844624df05ed66fb4d99c5264d2 /plugins
parent0fb7dbd382feff9e6cebe53a679f82bab067ceab (diff)
Updating OmniFixture to fix a randomly failing screenshot tests (transitions) refs #6693
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TestRunner/Commands/TestsSetupFixture.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/TestRunner/Commands/TestsSetupFixture.php b/plugins/TestRunner/Commands/TestsSetupFixture.php
index 56f4e5632f..f659eae71f 100644
--- a/plugins/TestRunner/Commands/TestsSetupFixture.php
+++ b/plugins/TestRunner/Commands/TestsSetupFixture.php
@@ -93,6 +93,9 @@ class TestsSetupFixture extends ConsoleCommand
$_SERVER = json_decode($serverGlobal, true);
}
+ if(Config::getInstance()->database_tests['tables_prefix'] !== '') {
+ throw new \Exception("To generate OmniFixture for the UI tests, you must set an empty tables_prefix in [database_tests]");
+ }
$this->requireFixtureFiles($input);
$this->setIncludePathAsInTestBootstrap();
@@ -176,7 +179,8 @@ class TestsSetupFixture extends ConsoleCommand
'dbname' => $fixture->getDbName(),
'host' => $input->getOption('db-host'),
'username' => $input->getOption('db-user'),
- 'password' => $input->getOption('db-pass')
+ 'password' => $input->getOption('db-pass'),
+ 'tables_prefix' => '',
);
foreach ($optionsToOverride as $configOption => $value) {
if ($value) {