Removing unecessary Mock object creation.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7949 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
mark_story 2008-12-22 04:31:21 +00:00
parent 943bb53dda
commit 60e3c6caa4

View file

@ -464,7 +464,6 @@ class ViewTest extends CakeTestCase {
function testHelperCallbackTriggering() { function testHelperCallbackTriggering() {
$this->PostsController->helpers = array('Html', 'CallbackMock'); $this->PostsController->helpers = array('Html', 'CallbackMock');
$View =& new TestView($this->PostsController); $View =& new TestView($this->PostsController);
$Critic =& new CallbackMockHelper();
$loaded = array(); $loaded = array();
$View->loaded = $View->loadHelpers($loaded, $this->PostsController->helpers); $View->loaded = $View->loadHelpers($loaded, $this->PostsController->helpers);
$View->loaded['CallbackMock']->expectOnce('beforeRender'); $View->loaded['CallbackMock']->expectOnce('beforeRender');