コード例 #1
0
ファイル: DesignTest.php プロジェクト: relue/magento2
 public function testGetOptions()
 {
     $this->assertSame($this->_model->getAllOptions(false), $this->_model->getOptions());
 }
コード例 #2
0
ファイル: Design.php プロジェクト: NatashaOlut/Mage_Test
 public function testGetAllOptionsSorting()
 {
     $fixture = array(0 => array('label' => 'X / X', 'value' => array(0 => array('label' => 'x (incompatible version)', 'value' => 'b/e/x'))), 1 => array('label' => 'Y / A', 'value' => array(0 => array('label' => 'default (incompatible version)', 'value' => 'default/g/default'))), 2 => array('label' => 'Y / Y', 'value' => array(0 => array('label' => 'default (incompatible version)', 'value' => 'default/default/default'))), 3 => array('label' => 'Z / Z', 'value' => array(0 => array('label' => 'y (incompatible version)', 'value' => 'a/d/y'))));
     $this->assertSame($fixture, $this->_model->getAllOptions(false));
 }