function SectionStorageManagerTest::testLoad
@covers ::load
      
    
File
- 
              core/modules/ layout_builder/ tests/ src/ Unit/ SectionStorageManagerTest.php, line 99 
Class
- SectionStorageManagerTest
- @coversDefaultClass \Drupal\layout_builder\SectionStorage\SectionStorageManager[[api-linebreak]]
Namespace
Drupal\Tests\layout_builder\UnitCode
public function testLoad() {
  $contexts = [
    'the_context' => $this->prophesize(ContextInterface::class)
      ->reveal(),
  ];
  $this->contextHandler
    ->applyContextMapping($this->plugin, $contexts)
    ->shouldBeCalled();
  $result = $this->manager
    ->load('the_plugin_id', $contexts);
  $this->assertSame($this->plugin
    ->reveal(), $result);
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
