function SectionStorageManagerTest::testLoadEmpty

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()
  2. 10 core/modules/layout_builder/tests/src/Unit/SectionStorageManagerTest.php \Drupal\Tests\layout_builder\Unit\SectionStorageManagerTest::testLoadEmpty()
  3. 11.x 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 <a href="/api/drupal/core%21modules%21layout_builder%21src%21SectionStorage%21SectionStorageManager.php/class/SectionStorageManager/8.9.x" title="Provides the Section Storage type plugin manager." class="local">\Drupal\layout_builder\SectionStorage\SectionStorageManager</a>

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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.