eZ\Publish\Core\MVC\Symfony\FieldType\Tests\RichText\RendererTest::testRenderLocationEmbedThrowsException PHP Method

testRenderLocationEmbedThrowsException() public method

    public function testRenderLocationEmbedThrowsException()
    {
        $renderer = $this->getMockedRenderer(array('checkLocation'));
        $locationId = 42;
        $renderer->expects($this->once())->method('checkLocation')->with($locationId)->will($this->throwException(new Exception('Something threw up')));
        $renderer->renderLocationEmbed($locationId, 'embedTest', array('parameters'), true);
    }