public function ResponsiveImageTest::testMultipleImagesToString in Image Lazyloader 8
Tests the to string function for multiple images.
@depends testMultipleImages
File
- tests/
src/ Unit/ ResponsiveImageTest.php, line 96
Class
- ResponsiveImageTest
- @coversDefaultClass \Drupal\lazyloader\ResponsiveImage @group lazyloader
Namespace
Drupal\Tests\lazyloader\UnitCode
public function testMultipleImagesToString(ResponsiveImage $image) {
$string = 'small.jpg 500w, medium.jpg 3x, big.jpg 1024w';
$this
->assertEquals($string, $image
->__toString());
}