You are here

public function ThumbnailTest::testNoLocalImage in Media entity Twitter 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/ThumbnailTest.php \Drupal\Tests\media_entity_twitter\Kernel\ThumbnailTest::testNoLocalImage()

Tests that the default thumbnail is used if no local image is available.

File

tests/src/Kernel/ThumbnailTest.php, line 157

Class

ThumbnailTest
Tests SVG thumbnail generation from Twitter API responses.

Namespace

Drupal\Tests\media_entity_twitter\Kernel

Code

public function testNoLocalImage() {
  $this
    ->assertEquals($this->plugin
    ->getDefaultThumbnail(), $this->plugin
    ->thumbnail($this->entity));
}