Skip to content

Commit

Permalink
quoteEscape didn't exist pre 1.6, use an older method
Browse files Browse the repository at this point in the history
  • Loading branch information
danslo committed Nov 12, 2015
1 parent 57551c5 commit caa62ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/Test/Aspect/Example.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ public function testBeforeMethodInterception()
{
// Create the intercepted block and call a method on it.
$page = Mage::app()->getLayout()->createBlock('cms/page');
$page->quoteEscape('foobar');
$page->getPage();

// Now verify that it was in the list of intercepted methods.
$this->assertContains('quoteEscape', $page->getInterceptedMethods());
$this->assertContains('getPage', $page->getInterceptedMethods());
}

}
}

0 comments on commit caa62ad

Please sign in to comment.