Skip to content

Commit

Permalink
Fix failing test cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jun 22, 2014
1 parent 9f49839 commit c58974b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/TestCase/Console/Command/Task/TestTaskTest.php
Expand Up @@ -20,6 +20,8 @@
use Cake\Core\App;
use Cake\Core\Configure;
use Cake\Core\Plugin;
use Cake\Network\Request;
use Cake\Network\Response;
use Cake\ORM\Table;
use Cake\ORM\TableRegistry;
use Cake\TestSuite\TestCase;
Expand Down Expand Up @@ -222,7 +224,7 @@ public function testFixtureArrayGenerationFromModel() {
* @return void
*/
public function testFixtureArrayGenerationFromController() {
$subject = new PostsController();
$subject = new PostsController(new Request(), new Response());
$result = $this->Task->generateFixtureList($subject);
$expected = [
'app.post',
Expand Down
4 changes: 3 additions & 1 deletion tests/TestCase/Controller/ComponentRegistryTest.php
Expand Up @@ -20,6 +20,8 @@
use Cake\Controller\Controller;
use Cake\Core\App;
use Cake\Core\Plugin;
use Cake\Network\Request;
use Cake\Network\Response;
use Cake\TestSuite\TestCase;

/**
Expand All @@ -37,7 +39,7 @@ class ComponentRegistryTest extends TestCase {
*/
public function setUp() {
parent::setUp();
$controller = new Controller();
$controller = new Controller(new Request(), new Response());
$this->Components = new ComponentRegistry($controller);
}

Expand Down

0 comments on commit c58974b

Please sign in to comment.