/**
  * @test
  */
 public function handleErrorLogsErrorWhenConfigurationIsSet()
 {
     /** @var \R3H6\Error404page\Domain\Model\Error $errorFixture */
     $errorFixture = new Error();
     $this->mockGetErrorHandlers();
     $this->extensionConfigurationMock->expects($this->once())->method('is')->with($this->equalTo('enableErrorLog'))->will($this->returnValue(true));
     $this->errorRepositoryMock->expects($this->once())->method('log')->with($errorFixture);
     $this->subject->handleError($errorFixture);
 }