mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
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:
parent
943bb53dda
commit
60e3c6caa4
1 changed files with 0 additions and 1 deletions
|
@ -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');
|
||||||
|
|
Loading…
Add table
Reference in a new issue