You are here

public function ResponsiveImageTest::testSingleImageWithDensityToString in Image Lazyloader 8

Tests single images with density to string.

@depends testSingleImageWithDensity

File

tests/src/Unit/ResponsiveImageTest.php, line 58

Class

ResponsiveImageTest
@coversDefaultClass \Drupal\lazyloader\ResponsiveImage @group lazyloader

Namespace

Drupal\Tests\lazyloader\Unit

Code

public function testSingleImageWithDensityToString(ResponsiveImage $image) {
  $string = 'mall.jpg 2x';
  $this
    ->assertEquals($string, $image
    ->__toString());
}