summaryrefslogtreecommitdiff
path: root/tests/Unit/Database
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Database')
-rw-r--r--tests/Unit/Database/Migration/MigrateTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Unit/Database/Migration/MigrateTest.php b/tests/Unit/Database/Migration/MigrateTest.php
index c71a1b7d..6dd4ecb9 100644
--- a/tests/Unit/Database/Migration/MigrateTest.php
+++ b/tests/Unit/Database/Migration/MigrateTest.php
@@ -24,7 +24,7 @@ class MigrateTest extends TestCase
{
/** @var Application|MockObject $app */
$app = $this->getMockBuilder(Application::class)
- ->setMethods(['instance'])
+ ->onlyMethods(['instance'])
->getMock();
/** @var SchemaBuilder|MockObject $builder */
$builder = $this->getMockBuilder(SchemaBuilder::class)
@@ -33,7 +33,7 @@ class MigrateTest extends TestCase
/** @var Migrate|MockObject $migration */
$migration = $this->getMockBuilder(Migrate::class)
->setConstructorArgs([$builder, $app])
- ->setMethods(['initMigration', 'getMigrationFiles', 'getMigrated', 'migrate', 'setMigrated'])
+ ->onlyMethods(['initMigration', 'getMigrationFiles', 'getMigrated', 'migrate', 'setMigrated'])
->getMock();
$migration->expects($this->atLeastOnce())