use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
/**
* @internal
*
* @covers \Shopware\Core\Framework\Adapter\Cache\InvalidateCacheTask
*/
class InvalidateCacheTaskTest extends TestCase
{ public function testGetTaskName(): void
{ static::
assertSame('shopware.invalidate_cache', InvalidateCacheTask::
getTaskName());
} public function testShouldRun(): void
{ static::
assertTrue(InvalidateCacheTask::
shouldRun(new ParameterBag(['shopware.cache.invalidation.delay' => 20
])));
static::
assertFalse(InvalidateCacheTask::
shouldRun(new ParameterBag(['shopware.cache.invalidation.delay' => 0
])));
} public function testGetDefaultInterval(): void
{ static::
assertSame(20, InvalidateCacheTask::
getDefaultInterval());
}