You are here

public function SectionStorageManagerTest::testLoadEmpty in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/tests/src/Unit/SectionStorageManagerTest.php \Drupal\Tests\layout_builder\Unit\SectionStorageManagerTest::testLoadEmpty()

@covers ::loadEmpty

File

core/modules/layout_builder/tests/src/Unit/SectionStorageManagerTest.php, line 108

Class

SectionStorageManagerTest
@coversDefaultClass \Drupal\layout_builder\SectionStorage\SectionStorageManager

Namespace

Drupal\Tests\layout_builder\Unit

Code

public function testLoadEmpty() {
  $result = $this->manager
    ->loadEmpty('the_plugin_id');
  $this
    ->assertInstanceOf(SectionStorageInterface::class, $result);
  $this
    ->assertSame($this->plugin
    ->reveal(), $result);
}