FluidTYPO3\Flux\Tests\Unit\Backend\TceMainTest::executeConfigurationProviderMethodDebugsOnException PHP Method

executeConfigurationProviderMethodDebugsOnException() public method

    public function executeConfigurationProviderMethodDebugsOnException()
    {
        $exception = new \RuntimeException();
        $mock = new TceMain();
        $configurationService = $this->getMock('FluidTYPO3\\Flux\\Service\\FluxService', array('debug', 'resolveConfigurationProviders'));
        $configurationService->expects($this->once())->method('debug')->with($exception);
        $configurationService->expects($this->once())->method('resolveConfigurationProviders')->will($this->throwException($exception));
        $handler = new DataHandler();
        $record = array();
        $parameters = array();
        $handler->substNEWwithIDs['NEW123'] = 123;
        $mock->injectConfigurationService($configurationService);
        $result = $this->callInaccessibleMethod($mock, 'executeConfigurationProviderMethod', 'method', 'tt_content', 'command', 'NEW123', $record, $parameters, $handler);
        $this->assertEmpty($result);
    }