You are here

public function BlazyManagerUnitTest::testEntityLoadImageStyle in Blazy 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/BlazyManagerUnitTest.php \Drupal\Tests\blazy\Unit\BlazyManagerUnitTest::testEntityLoadImageStyle()

Tests cases for config.

@covers ::entityLoad @covers ::entityLoadMultiple

File

tests/src/Unit/BlazyManagerUnitTest.php, line 70

Class

BlazyManagerUnitTest
@coversDefaultClass \Drupal\blazy\BlazyManager

Namespace

Drupal\Tests\blazy\Unit

Code

public function testEntityLoadImageStyle() {
  $styles = $this
    ->setUpImageStyle();
  $ids = array_keys($styles);
  $multiple = $this->blazyManager
    ->entityLoadMultiple('image_style', $ids);
  $this
    ->assertArrayHasKey('large', $multiple);
  $expected = $this->blazyManager
    ->entityLoad('large', 'image_style');
  $this
    ->assertEquals($expected, $multiple['large']);
}