$exporter =
new SitemapExporter( [],
$cache,
10,
$this->
createMock(FilesystemOperator::
class),
$this->
createMock(SitemapHandleFactoryInterface::
class),
$this->
createMock(EventDispatcher::
class) );
$result =
$exporter->
generate($this->context, false, null, null
);
static::
assertTrue($result->
isFinish());
} public function testExpectAlreadyLockedException(): void
{ $cache =
$this->
createMock(CacheItemPoolInterface::
class);
$cache->
method('getItem'
)->
willReturn($this->
createCacheItem('', true, true
));
$exporter =
new SitemapExporter( [],
$cache,
10,