ソースを参照

fix unit test

Olivier Massot 7 ヶ月 前
コミット
9715e7869d
1 ファイル変更1 行追加1 行削除
  1. 1 1
      tests/Unit/Service/Cron/Job/CleanDbTest.php

+ 1 - 1
tests/Unit/Service/Cron/Job/CleanDbTest.php

@@ -164,7 +164,7 @@ class CleanDbTest extends TestCase
         $cleanDb = $this->getMockFor('purgeAuditTables');
 
         $schemaManager = $this->getMockBuilder(\Doctrine\DBAL\Schema\AbstractSchemaManager::class)->disableOriginalConstructor()->getMock();
-        $this->connection->method('getSchemaManager')->willReturn($schemaManager);
+        $this->connection->method('createSchemaManager')->willReturn($schemaManager);
 
         $schemaManager->method('listTableNames')->willReturn([
             'table1',