diff options
Diffstat (limited to 'tests/PHPUnit/Integration/DbTest.php')
-rw-r--r-- | tests/PHPUnit/Integration/DbTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/PHPUnit/Integration/DbTest.php b/tests/PHPUnit/Integration/DbTest.php index c111ff312a..4c276d1eae 100644 --- a/tests/PHPUnit/Integration/DbTest.php +++ b/tests/PHPUnit/Integration/DbTest.php @@ -10,6 +10,7 @@ namespace Piwik\Tests\Integration; use Piwik\Common; use Piwik\Config; +use Piwik\DataAccess\TableMetadata; use Piwik\Db; use Piwik\Tests\Framework\TestCase\IntegrationTestCase; @@ -124,7 +125,8 @@ class DbTest extends IntegrationTestCase private function assertColumnNames($tableName, $expectedColumnNames) { - $colmuns = Db::getColumnNamesFromTable(Common::prefixTable($tableName)); + $tableMetadataAccess = new TableMetadata(); + $colmuns = $tableMetadataAccess->getColumns(Common::prefixTable($tableName)); $this->assertEquals($expectedColumnNames, $colmuns); } |