diff --git a/tests/functional/Handler/AddressHandlerTest.php b/tests/functional/Handler/AddressHandlerTest.php index ab58f48f9fff50637a2e6fd09905aa57c7959b72..65a57148be7b005bd7e1d9de32a0a5121f512952 100644 --- a/tests/functional/Handler/AddressHandlerTest.php +++ b/tests/functional/Handler/AddressHandlerTest.php @@ -10,7 +10,7 @@ use LQDN\Tests\Functional\FunctionalTest; class AddressHandlerTest extends FunctionalTest { - public function notestAddressUsedDelete() + public function testAddressUsedDelete() { $this->assertTrue($this->addressExists(1)); @@ -27,7 +27,7 @@ class AddressHandlerTest extends FunctionalTest $this->assertFalse($this->addressExists(2)); } - public function notestAddressUpdate() + public function testAddressUpdate() { $this->assertTrue($this->addressExists(1)); $this->assertTrue($this->isDefaultAddress(1)); diff --git a/tests/functional/Handler/CommandHandlerTest.php b/tests/functional/Handler/CommandHandlerTest.php new file mode 100644 index 0000000000000000000000000000000000000000..77870602d4fb057a1506ec558f764685fdab5267 --- /dev/null +++ b/tests/functional/Handler/CommandHandlerTest.php @@ -0,0 +1,23 @@ +setExpectedException('LQDN\Exception\CommandNotAnObjectException'); + $this->container['command_handler']->handle("Not a command object"); + } + + public function testCommandNotHandledException() + { + $this->setExpectedException('LQDN\Exception\CommandNotHandledException'); + $this->container['command_handler']->handle(new Object()); + } +} + +?>