public function testRoutingAdminContentNewsDelete() { // before $TestCreator = $this->findMember(2); $TestNews = $this->newTestNews($TestCreator); $this->insertTestNews($TestNews); $test_news_id = $this->getTestNewsId($TestNews); // main $redirectUrl = $this->app->url('admin_content_news'); $this->client->request('DELETE', $this->app->url('admin_content_news_delete', array('id' => $test_news_id))); $this->assertTrue($this->client->getResponse()->isRedirect($redirectUrl)); // after $this->deleteTestNews($TestNews); }