Skip to content
Extraits de code Groupes Projets
Valider ddaa1b20 rédigé par Okhin's avatar Okhin
Parcourir les fichiers

Test for the CommandHandler

parent 213037a8
Branches
Étiquettes
3 requêtes de fusion!37Mise en production,!13Resolve "La structure des piplomes à changer, le Finder n'est plus fonctionnels.",!8WIP: Resolve "Améliorer et ajouter des tests"
......@@ -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));
......
<?php
namespace LQDN\Tests\Functionnal\Handler;
use LQDN\CommandHandler;
use LQDN\Tests\Functional\FunctionalTest;
class CommandHandlerTest extends Functionaltest
{
public function testCommandNotAnObjectException()
{
$this->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());
}
}
?>
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter