diff --git a/tests/TestCase/Controller/Component/CrudComponentTest.php b/tests/TestCase/Controller/Component/CrudComponentTest.php index c9f8af327..88b969e58 100644 --- a/tests/TestCase/Controller/Component/CrudComponentTest.php +++ b/tests/TestCase/Controller/Component/CrudComponentTest.php @@ -924,7 +924,6 @@ public function testAddListenerByNameAndClassName() */ public function testControllerWithEmptyUses() { - $controller = new Controller(new Request()); $this->Crud = new CrudComponent($this->Registry, ['actions' => ['index']]); $this->Crud->beforeFilter(new Event('Controller.beforeFilter')); $this->controller->Crud = $this->Crud; @@ -996,7 +995,6 @@ public function testUseModel() 'Tests still not updated.' ); - $controller = new Controller(new Request()); $this->Crud = new CrudComponent($this->Registry, ['actions' => ['index']]); $this->Crud->beforeFilter(new Event('Controller.beforeFilter')); $this->controller->Crud = $this->Crud;