class CleanupUnusedDownloadMediaTaskHandlerTest extends TestCase
{ private MockObject&UnusedMediaPurger
$purger;
private CleanupUnusedDownloadMediaTaskHandler
$handler;
protected function setUp(): void
{ $this->purger =
$this->
createMock(UnusedMediaPurger::
class);
$this->handler =
new CleanupUnusedDownloadMediaTaskHandler( $this->
createMock(EntityRepository::
class),
$this->purger
);
} public function testGetHandledMessages(): void
{ static::
assertEquals([CleanupUnusedDownloadMediaTask::
class],
$this->handler->
getHandledMessages());
} public function testRun(): void
{