Skip to content
Permalink
Browse files

Adding return checks, and changing mock creation.

  • Loading branch information...
markstory committed Jul 4, 2010
1 parent fac9773 commit 54132cba792b011405ca081f7feb2468c2e55fc4
Showing with 4 additions and 4 deletions.
  1. +4 −4 cake/tests/cases/libs/view/helper_collection.test.php
@@ -134,7 +134,7 @@ function testTrigger() {
$this->Helpers->TriggerMockForm->expects($this->once())->method('beforeRender')
->with('one', 'two');
$this->Helpers->trigger('beforeRender', array('one', 'two'));
$this->asserTrue($this->Helpers->trigger('beforeRender', array('one', 'two')));
}
/**
@@ -144,8 +144,8 @@ function testTrigger() {
*/
function testTriggerWithDisabledHelpers() {
if (!class_exists('TriggerMockHtmlHelper')) {
$this->getMock('HtmlHelper', array(), array($this->View), 'TriggerMockHtmlHelper');
$this->getMock('FormHelper', array(), array($this->View), 'TriggerMockFormHelper');
$this->getMock('HtmlHelper', array(), array(), 'TriggerMockHtmlHelper', false);
$this->getMock('FormHelper', array(), array(), 'TriggerMockFormHelper', false);
}
$this->Helpers->load('TriggerMockHtml');
@@ -157,7 +157,7 @@ function testTriggerWithDisabledHelpers() {
$this->Helpers->disable('TriggerMockForm');
$this->Helpers->trigger('beforeRender', array('one', 'two'));
$this->asserTrue($this->Helpers->trigger('beforeRender', array('one', 'two')));
}
/**

0 comments on commit 54132cb

Please sign in to comment.
You can’t perform that action at this time.