You are here

public function ResponsiveImageTest::testSingleImageToString in Image Lazyloader 8

Tests the to string of a single image.

@depends testSingleImage

File

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

Class

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

Namespace

Drupal\Tests\lazyloader\Unit

Code

public function testSingleImageToString(ResponsiveImage $image) {
  $string = 'mall.jpg 500w';
  $this
    ->assertEquals($string, $image
    ->__toString());
}