Skip to content
This repository has been archived by the owner on Apr 11, 2022. It is now read-only.

Test case block

Vadim Justus edited this page Jun 26, 2014 · 6 revisions

TechDivision_MagentoUnitTesting_TestCase_Block

The block test case is designed for testing the block classes.

Mock objects

The test case initiates mock objects during the setup process. Use the method getRegisteredMock() to get access to the mock instances.

The following list shows you which key you can use and what mock you will get.

Key Class
core-helper Mage_Core_Helper_Data

Example:

$mock = $this->getRegisteredMock('some-key');

Public methods

There aren't any additional public methods provided by the test case.