public function TextimageApiTest::testSetInvalidTargetUriFilename in Textimage 8.4
Test targeting invalid URIs.
File
- tests/
src/ Kernel/ TextimageApiTest.php, line 419
Class
- TextimageApiTest
- Kernel tests for Textimage API.
Namespace
Drupal\Tests\textimage\KernelCode
public function testSetInvalidTargetUriFilename() {
$textimage = $this->textimageFactory
->get();
$this
->expectException(TextimageException::class);
$this
->expectExceptionMessage('Textimage error: Invalid target URI \'public://textimage-testing/bingo' . chr(1) . '.png\' specified');
$textimage
->setTargetUri('public://textimage-testing/bingo' . chr(1) . '.png');
}