本文整理汇总了PHP中Mage_Core_Model_App::getLayout方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Core_Model_App::getLayout方法的具体用法?PHP Mage_Core_Model_App::getLayout怎么用?PHP Mage_Core_Model_App::getLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Core_Model_App
的用法示例。
在下文中一共展示了Mage_Core_Model_App::getLayout方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testAfterToHtml
/**
* @covers Mage_Sales_Block_Adminhtml_Report_Filter_Form_Coupon::_afterToHtml
*/
public function testAfterToHtml()
{
/** @var $block Mage_Sales_Block_Adminhtml_Report_Filter_Form_Coupon */
$block = $this->_application->getLayout()->createBlock('Mage_Sales_Block_Adminhtml_Report_Filter_Form_Coupon');
$block->setFilterData(new Varien_Object());
$html = $block->toHtml();
$expectedStrings = array('FormElementDependenceController', 'sales_report_rules_list', 'sales_report_price_rule_type');
foreach ($expectedStrings as $expectedString) {
$this->assertContains($expectedString, $html);
}
}
示例2: testGetLayout
public function testGetLayout()
{
$layout = $this->_mageModel->getLayout();
$this->assertInstanceOf('Mage_Core_Model_Layout', $layout);
$this->assertSame($layout, $this->_mageModel->getLayout());
}
示例3: getLayout
/**
* Overriden for typehinting
*
* @return Mage_PHPUnit_Model_Layout
* (non-PHPdoc)
* @see Mage_Core_Model_App::getLayout()
*/
public function getLayout()
{
return parent::getLayout();
}
示例4: testGetLayout
public function testGetLayout()
{
$this->_objectManager->expects($this->once())->method('get')->with('Mage_Core_Model_Layout')->will($this->returnValue(self::LAYOUT_INSTANCE));
$this->assertEquals(self::LAYOUT_INSTANCE, $this->_model->getLayout());
}