aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/DB/MigrationsTest.php
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-06-20 10:53:06 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-06-20 10:53:06 +0200
commit6a1510f8ee48494a19dc1239fd2584dc2188e18d (patch)
tree44268aa4e7afce7531cddb4cf91f3a72bbca4c13 /tests/lib/DB/MigrationsTest.php
parentc7e1c36362a7e4de5a7d074ab43f97c2559e06ea (diff)
downloadnextcloud-server-6a1510f8ee48494a19dc1239fd2584dc2188e18d.tar.gz
nextcloud-server-6a1510f8ee48494a19dc1239fd2584dc2188e18d.zip
Remove some more at matchers in tests/lib
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests/lib/DB/MigrationsTest.php')
-rw-r--r--tests/lib/DB/MigrationsTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/lib/DB/MigrationsTest.php b/tests/lib/DB/MigrationsTest.php
index 206fe1a3798..3d115f25adf 100644
--- a/tests/lib/DB/MigrationsTest.php
+++ b/tests/lib/DB/MigrationsTest.php
@@ -115,12 +115,12 @@ class MigrationsTest extends \Test\TestCase {
->willReturn($wrappedSchema);
$step = $this->createMock(IMigrationStep::class);
- $step->expects($this->at(0))
+ $step->expects($this->once())
->method('preSchemaChange');
- $step->expects($this->at(1))
+ $step->expects($this->once())
->method('changeSchema')
->willReturn($schemaResult);
- $step->expects($this->at(2))
+ $step->expects($this->once())
->method('postSchemaChange');
$this->migrationService = $this->getMockBuilder(MigrationService::class)
@@ -145,12 +145,12 @@ class MigrationsTest extends \Test\TestCase {
->method('migrateToSchema');
$step = $this->createMock(IMigrationStep::class);
- $step->expects($this->at(0))
+ $step->expects($this->once())
->method('preSchemaChange');
- $step->expects($this->at(1))
+ $step->expects($this->once())
->method('changeSchema')
->willReturn(null);
- $step->expects($this->at(2))
+ $step->expects($this->once())
->method('postSchemaChange');
$this->migrationService = $this->getMockBuilder(MigrationService::class)