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:
authordiosmosis <benaka@piwik.pro>2014-09-29 11:11:28 +0400
committerdiosmosis <benaka@piwik.pro>2014-10-02 06:10:31 +0400
commit860839e3b05cc08cbbe2021e8597dd4267025305 (patch)
treecb9ac7a70ef24179a2d56dd136aa201b972dfda2 /tests/PHPUnit/IntegrationTestCase.php
parent520cb2de54a4c53a452c1a52338a0bae660864b6 (diff)
Use table prefix when truncating tables in DatabaseTestCase.
Diffstat (limited to 'tests/PHPUnit/IntegrationTestCase.php')
-rwxr-xr-xtests/PHPUnit/IntegrationTestCase.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/PHPUnit/IntegrationTestCase.php b/tests/PHPUnit/IntegrationTestCase.php
index 44d0abc2fd..4687cc534c 100755
--- a/tests/PHPUnit/IntegrationTestCase.php
+++ b/tests/PHPUnit/IntegrationTestCase.php
@@ -518,8 +518,10 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase
*/
protected static function restoreDbTables($tables)
{
+ $tablesPrefix = Config::getInstance()->database_tests['tables_prefix'];
+
$existingTables = array();
- foreach (Db::fetchAll("SHOW TABLES LIKE '%'") as $row) {
+ foreach (Db::fetchAll("SHOW TABLES LIKE '$tablesPrefix%'") as $row) {
$existingTables[] = reset($row);
}