/** * {inheritdoc} * * @param string $type * @return array */ public function getType($type) { return $this->_dataStorage->get('types/' . $type, []); }
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); }