]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(tests): Adjust unit tests to outline the schema is checked twice now 39506/head
authorJoas Schilling <coding@schilljs.com>
Fri, 21 Jul 2023 10:17:36 +0000 (12:17 +0200)
committerJoas Schilling <coding@schilljs.com>
Fri, 21 Jul 2023 10:17:36 +0000 (12:17 +0200)
Signed-off-by: Joas Schilling <coding@schilljs.com>
tests/lib/DB/MigrationsTest.php

index b7d49b565ac1ecf074c49ed1681fbf50e47ae811..d982a47623bcd8eef4c818acf5b7ee54425b0a27 100644 (file)
@@ -101,10 +101,10 @@ class MigrationsTest extends \Test\TestCase {
                        ->method('migrateToSchema');
 
                $wrappedSchema = $this->createMock(Schema::class);
-               $wrappedSchema->expects($this->once())
+               $wrappedSchema->expects($this->exactly(2))
                        ->method('getTables')
                        ->willReturn([]);
-               $wrappedSchema->expects($this->once())
+               $wrappedSchema->expects($this->exactly(2))
                        ->method('getSequences')
                        ->willReturn([]);