} public function testReturnedOffsetIsValid(): void
{ $this->
createProducts();
$productUrlProvider =
$this->
getProductUrlProvider();
// first run
$urlResult =
$productUrlProvider->
getUrls($this->salesChannelContext, 3
);
static::
assertIsNumeric($urlResult->
getNextOffset());
// 1+n run
$urlResult =
$productUrlProvider->
getUrls($this->salesChannelContext, 2,
$urlResult->
getNextOffset());
static::
assertIsNumeric($urlResult->
getNextOffset());
// last run
$urlResult =
$productUrlProvider->
getUrls($this->salesChannelContext, 100,
$urlResult->
getNextOffset()); // test with high number to get last chunk
static::
assertNull($urlResult->
getNextOffset());
} public function testOnlyVariantUrlsGenerated(): void
{