aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/DB
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2022-06-21 11:45:00 +0200
committerGitHub <noreply@github.com>2022-06-21 11:45:00 +0200
commitfd8f2aff09c93b81c120a05e0441a1677d8dde7c (patch)
tree9168addbe74aa1bac9a5b73164f04c607f68c5bb /tests/lib/DB
parent20fc8d8f30012edcd9f1d4e92dd4704bc5b77492 (diff)
parent6a1510f8ee48494a19dc1239fd2584dc2188e18d (diff)
downloadnextcloud-server-fd8f2aff09c93b81c120a05e0441a1677d8dde7c.tar.gz
nextcloud-server-fd8f2aff09c93b81c120a05e0441a1677d8dde7c.zip
Merge pull request #32901 from nextcloud/fix/remove-at-matcher-in-lib-tests
Remove at matcher uses in tests/lib
Diffstat (limited to 'tests/lib/DB')
-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)