Skip to content

Commit

Permalink
Updated tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raistlfiren committed Jul 16, 2024
1 parent 56b3c28 commit 9ca3f0a
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions tests/Library/Handler/HandlerFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,7 @@ public function testImportBuildCommand()
$handlerOptions->setDelete(false);
$handlerOptions->setDeleteOnly(false);

$this->importHandler->expects($this->once())
->method('handle');

$test = $this->handlerFactory->buildCommand($handlerOptions);

self::assertInstanceOf(ImportHandler::class, $test);
self::assertTrue($this->importHandler->supports($handlerOptions->getCommand()));
}

public function testScheduleBuildCommand()
Expand All @@ -55,11 +50,6 @@ public function testScheduleBuildCommand()
$handlerOptions->setDelete(false);
$handlerOptions->setDeleteOnly(false);

$this->scheduleHandler->expects($this->once())
->method('handle');

$test = $this->handlerFactory->buildCommand($handlerOptions);

self::assertInstanceOf(ScheduleHandler::class, $test);
self::assertTrue($this->scheduleHandler->supports($handlerOptions->getCommand()));
}
}

0 comments on commit 9ca3f0a

Please sign in to comment.