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