Skip to content

Commit

Permalink
OXDEV-7456: Remove unused method getFetchOneQueryBuilderFactoryMock
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelOxid committed Nov 20, 2023
1 parent b3a30ba commit 5c53143
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/Unit/Infrastructure/GetThemeSettingRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,20 +334,6 @@ public function testGetNoSettingsList(): void
$repository->getSettingsList('awesomeTheme');
}

/**
* @param string|bool $returnedValue
* @return QueryBuilderFactoryInterface|(QueryBuilderFactoryInterface&MockObject)|MockObject
*/
private function getFetchOneQueryBuilderFactoryMock(
string|bool $returnedValue
): QueryBuilderFactoryInterface|MockObject {
$result = $this->createMock(Result::class);
$result->expects($this->once())
->method('fetchOne')
->willReturn($returnedValue);
return $this->getQueryBuilderFactoryMock($result);
}

/**
* @param Result|MockObject|(Result&MockObject) $result
* @return QueryBuilderFactoryInterface|(QueryBuilderFactoryInterface&MockObject)|MockObject
Expand Down

0 comments on commit 5c53143

Please sign in to comment.