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
path: root/tests/lib
diff options
context:
space:
mode:
authordiosmosis <benakamoorthi@fastmail.fm>2014-04-04 22:57:20 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-04-04 22:57:20 +0400
commite1f4d6795c7922f5e3330b3d5296314094e6844b (patch)
tree02659faf0dd08e83496df15f213378ef1fd606b7 /tests/lib
parent0187cfd6e5c264ce8eac2064ac7b852eb2798697 (diff)
Add new console command to setup fixture outside of a test so manual testing can be done w/ existing fixtures and so specific custom data can be added by creating a fixture. Includes slight refactor to Fixture.php.
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/screenshot-testing/support/setupDatabase.php2
-rw-r--r--tests/lib/screenshot-testing/support/teardownDatabase.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/screenshot-testing/support/setupDatabase.php b/tests/lib/screenshot-testing/support/setupDatabase.php
index 9f7bc0d350..6556707354 100644
--- a/tests/lib/screenshot-testing/support/setupDatabase.php
+++ b/tests/lib/screenshot-testing/support/setupDatabase.php
@@ -35,7 +35,7 @@ if (!empty($fixtureClass)) {
$fixture->resetPersistedFixture = true;
}
$fixture->printToScreen = true;
- $fixture->performSetUp("");
+ $fixture->performSetUp();
}
// make sure symbolic links exist (phantomjs doesn't support symlink-ing yet)
diff --git a/tests/lib/screenshot-testing/support/teardownDatabase.php b/tests/lib/screenshot-testing/support/teardownDatabase.php
index 3ef3e8e1f7..572e3d9608 100644
--- a/tests/lib/screenshot-testing/support/teardownDatabase.php
+++ b/tests/lib/screenshot-testing/support/teardownDatabase.php
@@ -27,5 +27,5 @@ if (!class_exists($fixtureClass)) {
$fixture = new $fixtureClass();
$fixture->dropDatabaseInSetUp = false;
$fixture->printToScreen = true;
-$fixture->performSetUp("", $environmentOnly = true);
+$fixture->performSetUp($environmentOnly = true);
$fixture->performTearDown(""); \ No newline at end of file