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); }