public function testLoadLocationsByContent() { $handler = $this->getLocationHandler(); $this->locationGateway->expects($this->once())->method('loadLocationDataByContent')->with(23, 42)->will($this->returnValue(array())); $this->locationMapper->expects($this->once())->method('createLocationsFromRows')->with(array())->will($this->returnValue(array('a', 'b'))); $locations = $handler->loadLocationsByContent(23, 42); $this->assertInternalType('array', $locations); }