Remove container from Adress listenet. #198

This commit is contained in:
Manuel Raynaud
2014-01-31 11:28:06 +01:00
parent 3fb0dfe1db
commit bf49aa24dd
3 changed files with 6 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ use Thelia\Tests\Action\BaseAction;
* @package Thelia\Tests\Action
* @author Manuel Raynaud <mraynaud@openstudio.fr>
*/
class AddressTest extends BaseAction
class AddressTest extends \PHPUnit_Framework_TestCase
{
public function testCreatedAddress()
@@ -59,8 +59,9 @@ class AddressTest extends BaseAction
""
);
$AddressCreateOrUpdateEvent->setCustomer($customer);
$AddressCreateOrUpdateEvent->setDispatcher($this->getMock("Symfony\Component\EventDispatcher\EventDispatcherInterface"));
$actionAddress = new Address($this->getContainer());
$actionAddress = new Address();
$actionAddress->create($AddressCreateOrUpdateEvent);
$createdAddress = $AddressCreateOrUpdateEvent->getAddress();
@@ -106,6 +107,7 @@ class AddressTest extends BaseAction
""
);
$addressEvent->setAddress($address);
$addressEvent->setDispatcher($this->getMock("Symfony\Component\EventDispatcher\EventDispatcherInterface"));
$actionAddress = new Address($this->getContainer());
$actionAddress->update($addressEvent);