#[Package('sales-channel')]
class CustomUrlProviderTest extends TestCase
{ public function testGetUrlsReturnsNoUrls(): void
{ $configHandlerStub =
$this->
createMock(ConfigHandler::
class);
$configHandlerStub->
method('get'
) ->
with(ConfigHandler::CUSTOM_URLS_KEY
) ->
willReturn([]);
$customUrlProvider =
$this->
getCustomUrlProvider($configHandlerStub);
$salesChannelContext =
$this->
createMock(SalesChannelContext::
class);
static::
assertSame([],
$customUrlProvider->
getUrls($salesChannelContext, 100
)->
getUrls());
} public function testGetUrlsReturnsAllUrlsForSalesChannel(): void
{ $salesChannelContext =
$this->
createMock(SalesChannelContext::
class);
$configHandlerStub =
$this->
createMock(ConfigHandler::
class);