You are here

protected function IconTest::assertIconUrl in Embed 8

Test a button's icon URL.

Parameters

string $uri: The exepcted URI to the icon file.

\Drupal\embed\EmbedButtonInterface $button: The embed button.

string $message: The assertion message.

1 call to IconTest::assertIconUrl()
IconTest::testIcon in tests/src/Kernel/IconTest.php
Tests the icon functionality.

File

tests/src/Kernel/IconTest.php, line 86

Class

IconTest
Tests embed button icon file handling.

Namespace

Drupal\Tests\embed\Kernel

Code

protected function assertIconUrl($uri, EmbedButtonInterface $button, string $message = '') {
  $this
    ->assertSame(file_url_transform_relative(file_create_url($uri)), $button
    ->getIconUrl(), $message);
}