/** * @test * @expectedException \TYPO3\Flow\Mvc\Exception\InvalidRoutePartValueException */ public function resolvesThrowsExceptionIfRoutePartDefaultValueIsNoString() { $mockRoutePart = $this->getMock(\TYPO3\Flow\Mvc\Routing\RoutePartInterface::class); $mockRoutePart->expects($this->any())->method('resolve')->will($this->returnValue(true)); $mockRoutePart->expects($this->any())->method('hasValue')->will($this->returnValue(false)); $mockRoutePart->expects($this->once())->method('getDefaultValue')->will($this->returnValue(array('not a' => 'string'))); $this->route->setUriPattern('foo'); $this->route->_set('isParsed', true); $this->route->_set('routeParts', array($mockRoutePart)); $this->route->resolves(array()); }