Пример #1
0
 /**
  * {inheritdoc}
  *
  * @param string $type
  * @return array
  */
 public function getType($type)
 {
     return $this->_dataStorage->get('types/' . $type, []);
 }
Пример #2
0
 public function testGetType()
 {
     $this->_storage->expects($this->once())->method('get')->with('types/someType', array())->will($this->returnValue(array('someTypeValue')));
     $result = $this->_model->getType('someType');
     $this->assertCount(1, $result);
 }