diff --git a/tests/db/UpgradeDBTest.php b/tests/db/UpgradeDBTest.php index 27b369b6148fe4e8a77da153da31facd217e78ba..ee7d96ec49996252e28006f86142528ca33ec4b0 100644 --- a/tests/db/UpgradeDBTest.php +++ b/tests/db/UpgradeDBTest.php @@ -67,7 +67,7 @@ abstract class UpgradeDBTestCase extends PHPUnit_Framework_TestCase { return false; try { - $adapter->query("select $column from $table limit 1"); + $this->query("select $column from $table limit 1"); } catch (Exception $e) { return false; } diff --git a/tests/library/Class/Import/Typo3Test.php b/tests/library/Class/Import/Typo3Test.php index eb6631263976e4d77f17340842f908d963f60daf..7ff9cf15502edc525d1d006c9582837ca80d79c4 100644 --- a/tests/library/Class/Import/Typo3Test.php +++ b/tests/library/Class/Import/Typo3Test.php @@ -665,7 +665,8 @@ class Import_Typo3UpdateArticleTest extends Import_Typo3TestCase { } public function expectedUpdateArticle() { - $articles = MockTypo3DB::findAllArticles(); + $db = new MockTypo3DB(); + $articles = $db->findAllArticles(); return [ [ 'title' => 'Tous à bord du bateau pirate',