From c1a861d9a4b5ad9642e61545ff1b49733ece29bd Mon Sep 17 00:00:00 2001
From: pbarroca <pbarroca@afi-sa.fr>
Date: Tue, 24 Nov 2015 15:50:01 +0100
Subject: [PATCH] fix tests

---
 tests/db/UpgradeDBTest.php               | 2 +-
 tests/library/Class/Import/Typo3Test.php | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/db/UpgradeDBTest.php b/tests/db/UpgradeDBTest.php
index 27b369b6148..ee7d96ec499 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 eb663126397..7ff9cf15502 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',
-- 
GitLab