Skip to content

Commit 82e7368

Browse files
committed
fix tests
1 parent 4858df6 commit 82e7368

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/Profile/Shopware6/Converter/SalesChannelConverterTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function testConvertAppendsMigrationSuffixForExistingStorefront(): void
7575
unset($translation);
7676

7777
$salesChannelTypeLookup = $this->createMock(SalesChannelTypeLookup::class);
78-
$salesChannelTypeLookup->method('hasType')->willReturn(true);
78+
$salesChannelTypeLookup->method('hasSalesChannelType')->willReturn(true);
7979

8080
$salesChannelLookup = $this->createMock(SalesChannelLookup::class);
8181
$salesChannelLookup->method('getSalesChannelWithTypeAndName')
@@ -110,7 +110,7 @@ public function testConvertMapsExistingCustomTypeSalesChannel(): void
110110
$existingSalesChannelId = '11111111111111111111111111111111';
111111

112112
$salesChannelTypeLookup = $this->createMock(SalesChannelTypeLookup::class);
113-
$salesChannelTypeLookup->method('hasType')->with($input['typeId'], static::anything())->willReturn(true);
113+
$salesChannelTypeLookup->method('hasSalesChannelType')->with($input['typeId'], static::anything())->willReturn(true);
114114

115115
$salesChannelLookup = $this->createMock(SalesChannelLookup::class);
116116
$salesChannelLookup->method('getSalesChannelWithTypeAndName')
@@ -152,7 +152,7 @@ public function testConvertCreatesNewSalesChannelForExistingCustomTypeWithoutMat
152152
$expectedOutput['typeId'] = '9ce0868f406d47d98cfe4b281e62f098';
153153

154154
$salesChannelTypeLookup = $this->createMock(SalesChannelTypeLookup::class);
155-
$salesChannelTypeLookup->method('hasType')->with($input['typeId'], static::anything())->willReturn(true);
155+
$salesChannelTypeLookup->method('hasSalesChannelType')->with($input['typeId'], static::anything())->willReturn(true);
156156

157157
$salesChannelLookup = $this->createMock(SalesChannelLookup::class);
158158
$salesChannelLookup->method('getSalesChannelWithTypeAndName')
@@ -195,7 +195,7 @@ protected function createConverter(
195195
?array $mappingArray = [],
196196
): ConverterInterface {
197197
$salesChannelTypeLookup = $this->createMock(SalesChannelTypeLookup::class);
198-
$salesChannelTypeLookup->method('hasType')->willReturnCallback(
198+
$salesChannelTypeLookup->method('hasSalesChannelType')->willReturnCallback(
199199
static function (string $salesChannelTypeId, mixed $context): bool {
200200
if ($salesChannelTypeId === 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') {
201201
return false;

0 commit comments

Comments
 (0)