Skip to content

Commit 149f9a1

Browse files
committed
test: adjust expected method calls
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent fcc63b9 commit 149f9a1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/lib/AppConfigMigrationFallbackTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function testLoadConfigFallsBackOnMissingColumns(): void {
9898
$exception = $this->createInvalidFieldNameException();
9999

100100
$successResult = $this->createMock(IResult::class);
101-
$successResult->method('fetchAll')->willReturn([
101+
$successResult->method('fetchAllAssociative')->willReturn([
102102
['appid' => 'core', 'configkey' => 'vendor', 'configvalue' => 'owncloud'],
103103
['appid' => 'core', 'configkey' => 'installedat', 'configvalue' => '1234567890'],
104104
]);
@@ -146,7 +146,7 @@ public function testInsertOmitsNewColumnsInFallbackMode(): void {
146146
$exception = $this->createInvalidFieldNameException();
147147

148148
$loadResult = $this->createMock(IResult::class);
149-
$loadResult->method('fetchAll')->willReturn([]);
149+
$loadResult->method('fetchAllAssociative')->willReturn([]);
150150

151151
$qb = $this->createMockQueryBuilder();
152152

tests/lib/Config/UserConfigMigrationFallbackTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function testLoadConfigFallsBackOnMissingColumns(): void {
9595
$exception = $this->createInvalidFieldNameException();
9696

9797
$successResult = $this->createMock(IResult::class);
98-
$successResult->method('fetchAll')->willReturn([
98+
$successResult->method('fetchAllAssociative')->willReturn([
9999
['appid' => 'settings', 'configkey' => 'email', 'configvalue' => 'user@example.com'],
100100
]);
101101

@@ -140,7 +140,7 @@ public function testInsertOmitsNewColumnsInFallbackMode(): void {
140140
$exception = $this->createInvalidFieldNameException();
141141

142142
$loadResult = $this->createMock(IResult::class);
143-
$loadResult->method('fetchAll')->willReturn([]);
143+
$loadResult->method('fetchAllAssociative')->willReturn([]);
144144

145145
$qb = $this->createMockQueryBuilder();
146146

0 commit comments

Comments
 (0)