public function testGetOptions() { $this->assertSame($this->_model->getAllOptions(false), $this->_model->getOptions()); }
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)); }