public function PrintEngineExceptionTest::testAuthorisationException in Entity Print 8.2
Tests the pretty error messages for authorisation failures.
@dataProvider authorisationExceptions
File
- tests/
src/ Unit/ PrintEngineExceptionTest.php, line 31
Class
- PrintEngineExceptionTest
- Test print engine exceptions.
Namespace
Drupal\Tests\entity_print\UnitCode
public function testAuthorisationException($message) {
$exception = new PrintEngineException($message);
$this
->assertEquals('Authorisation failed, are your resources behind HTTP authentication? Check the admin page to set credentials.', $exception
->getPrettyMessage());
}