Skip to content

Commit

Permalink
OXDEV-7557 Fix length coding style issues
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fedurtsya <[email protected]>
  • Loading branch information
Sieg committed Nov 14, 2023
1 parent 39687c2 commit f09b496
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
13 changes: 10 additions & 3 deletions tests/Unit/Infrastructure/ShopSettingRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ public function testGetNoSettingsList(): void
* @param string|bool $returnedValue
* @return QueryBuilderFactoryInterface|(QueryBuilderFactoryInterface&MockObject)|MockObject
*/
private function getFetchOneQueryBuilderFactoryMock(string|bool $returnedValue
private function getFetchOneQueryBuilderFactoryMock(
string|bool $returnedValue
): QueryBuilderFactoryInterface|MockObject {
$result = $this->createMock(Result::class);
$result->expects($this->once())
Expand Down Expand Up @@ -267,11 +268,17 @@ private function getFetchOneShopSettingRepoInstance(string|bool $qbReturnValue):
* @param MockObject|QueryBuilderFactoryInterface $queryBuilderFactory
* @return ShopSettingRepository
*/
private function getShopSettingRepository(MockObject|QueryBuilderFactoryInterface $queryBuilderFactory
private function getShopSettingRepository(
MockObject|QueryBuilderFactoryInterface $queryBuilderFactory
): ShopSettingRepository {
$basicContextMock = $this->getBasicContextMock(1);
$eventDispatcher = $this->createMock(EventDispatcherInterface::class);
$shopSettingEncoder = new ShopSettingEncoder();
return new ShopSettingRepository($basicContextMock, $eventDispatcher, $queryBuilderFactory, $shopSettingEncoder);
return new ShopSettingRepository(
$basicContextMock,
$eventDispatcher,
$queryBuilderFactory,
$shopSettingEncoder
);
}
}
3 changes: 2 additions & 1 deletion tests/Unit/Infrastructure/ThemeSettingRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ public function testGetNoSettingsList(): void
* @param string|bool $returnedValue
* @return QueryBuilderFactoryInterface|(QueryBuilderFactoryInterface&MockObject)|MockObject
*/
private function getFetchOneQueryBuilderFactoryMock(string|bool $returnedValue
private function getFetchOneQueryBuilderFactoryMock(
string|bool $returnedValue
): QueryBuilderFactoryInterface|MockObject {
$result = $this->createMock(Result::class);
$result->expects($this->once())
Expand Down
3 changes: 2 additions & 1 deletion tests/Unit/UnitTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ protected function getCollectionSetting(): StringSetting
protected function getAssocCollectionSetting(): StringSetting
{
return new StringSetting(
new ID('aarraySetting'), json_encode(
new ID('aarraySetting'),
json_encode(
['first' => '10', 'second' => '20', 'third' => '50']
)
);
Expand Down

0 comments on commit f09b496

Please sign in to comment.