public function testGetThemeOptionsSorting() { $fixture = array(0 => array('label' => 'X', 'value' => array(0 => array('label' => 'X (incompatible version)', 'value' => 'b/e'))), 1 => array('label' => 'Y', 'value' => array(0 => array('label' => 'A (incompatible version)', 'value' => 'default/g'), 1 => array('label' => 'Y (incompatible version)', 'value' => 'default/default'))), 2 => array('label' => 'Z', 'value' => array(0 => array('label' => 'Z (incompatible version)', 'value' => 'a/d')))); $this->assertSame($fixture, $this->_model->getThemeOptions()); }
public function testGetThemeOptionsSorting() { $fixture = array(array('label' => 'Default', 'value' => array(array('label' => 'Default (incompatible version)', 'value' => 'default/default'), array('label' => 'Theme G (incompatible version)', 'value' => 'default/g'))), array('label' => 'Package A', 'value' => array(array('label' => 'Theme D (incompatible version)', 'value' => 'a/d'))), array('label' => 'Package B', 'value' => array(array('label' => 'Theme E (incompatible version)', 'value' => 'b/e')))); $this->assertSame($fixture, $this->_model->getThemeOptions()); }