public function testSwitch() { $this->request->query->set('page', 'page'); $this->request->query->set('prefix', 'invalid'); $this->action->execute($this->mapping, null, $this->request, $this->response); // TODO: Check the module has switched }
public function testExecute() { $this->assertNull($this->action->execute(new \Phruts\Action\ActionMapping(), null, new \Symfony\Component\HttpFoundation\Request(), new \Symfony\Component\HttpFoundation\Response())); }