소스 검색

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',