Skip to content

Commit

Permalink
Fix failing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 30, 2013
1 parent 8f18f0b commit 6ca7734
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/Cake/Test/TestCase/Console/Command/BakeShellTest.php
Expand Up @@ -64,25 +64,27 @@ public function tearDown() {
* @return void
*/
public function testAllWithModelName() {
$dispatcher =& $this->Dispatcher;

$this->Shell->Model = $this->getMock(
'Cake\Console\Command\Task\ModelTask',
[],
[$this->Dispatcher]
[$dispatcher]
);
$this->Shell->Controller = $this->getMock(
'Cake\Console\Command\Task\ControllerTask',
[],
[$this->Dispatcher]
[$dispatcher]
);
$this->Shell->View = $this->getMock(
'Cake\Console\Command\Task\ModelTask',
[],
[$this->Dispatcher]
[$dispatcher]
);
$this->Shell->DbConfig = $this->getMock(
'Cake\Console\Command\Task\DbConfigTask',
[],
[$this->Dispatcher]
[$dispatcher]
);

$this->Shell->DbConfig->expects($this->once())
Expand Down

0 comments on commit 6ca7734

Please sign in to comment.