Exemplo n.º 1
0
 /**
  * Returns list of available resources
  *
  * @return array
  */
 public function toOptionArray()
 {
     $resourceOptions = array();
     foreach (array_keys($this->_arguments->getResources()) as $resourceName) {
         $resourceOptions[] = array('value' => $resourceName, 'label' => $resourceName);
     }
     sort($resourceOptions);
     reset($resourceOptions);
     return $resourceOptions;
 }
Exemplo n.º 2
0
 public function testGetResources()
 {
     $this->assertEquals(self::$fixtureConfig['resource'], $this->_arguments->getResources());
     $this->assertEquals(self::$fixtureConfigMerged['resource'], $this->_argumentsMerged->getResources());
 }
Exemplo n.º 3
0
 /**
  * {@inheritdoc}
  */
 public function getResources()
 {
     return $this->subject->getResources();
 }