From c7a2ca88c6d6c76ef9f965cbea73cee6fc025f0e Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Wed, 22 May 2013 12:10:00 +0200 Subject: [PATCH] remove unused ActionMatcherTest --- .../Routing/Matcher/ActionMatcherTest.php | 67 ------------------- 1 file changed, 67 deletions(-) delete mode 100644 core/lib/Thelia/Tests/Routing/Matcher/ActionMatcherTest.php diff --git a/core/lib/Thelia/Tests/Routing/Matcher/ActionMatcherTest.php b/core/lib/Thelia/Tests/Routing/Matcher/ActionMatcherTest.php deleted file mode 100644 index 043b47e6b..000000000 --- a/core/lib/Thelia/Tests/Routing/Matcher/ActionMatcherTest.php +++ /dev/null @@ -1,67 +0,0 @@ -. */ -/* */ -/*************************************************************************************/ - -namespace Thelia\Tests\Routing\Matcher; - -use Symfony\Component\HttpFoundation\Request; -use Thelia\Routing\Matcher\ActionMatcher; -use Thelia\Core\Event\ActionEvent; - -class ActionMatcherTest extends \PHPUnit_Framework_TestCase -{ - - /** - * - * if there is no action parameter and n - * - * @expectedException Symfony\Component\Routing\Exception\ResourceNotFoundException - * @expectedExceptionMessage No action parameter found - */ - public function testDispatchActionWithoutAction() - { - $actionMatcher = new ActionMatcher(); - - $dispatcher = $this->getMock("Symfony\Component\EventDispatcher\EventDispatcherInterface"); - - $dispatcher->expects($this->any()) - ->method("dispatch"); - $actionMatcher->setDispatcher($dispatcher); - $actionMatcher->matchRequest(new Request()); - } - - public function testDispatchActionWithAddProduct() - { - $request = new Request(array( - "action" => "addProduct" - )); - - $actionMatcher = new ActionMatcher(); - $actionMatcher->setDispatcher($this->getMock("Symfony\Component\EventDispatcher\EventDispatcherInterface")); - $action = $actionMatcher->matchRequest($request); - - $this->assertArrayHasKey("_controller", $action); - $this->assertInstanceOf("Thelia\Action\Cart", $action["_controller"][0]); - - } - -} \ No newline at end of file