diff options
author | diosmosis <benaka@piwik.pro> | 2014-09-29 11:11:28 +0400 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-10-02 06:10:31 +0400 |
commit | 860839e3b05cc08cbbe2021e8597dd4267025305 (patch) | |
tree | cb9ac7a70ef24179a2d56dd136aa201b972dfda2 /tests/PHPUnit/IntegrationTestCase.php | |
parent | 520cb2de54a4c53a452c1a52338a0bae660864b6 (diff) |
Use table prefix when truncating tables in DatabaseTestCase.
Diffstat (limited to 'tests/PHPUnit/IntegrationTestCase.php')
-rwxr-xr-x | tests/PHPUnit/IntegrationTestCase.php | 4 |
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); } |