You are here

public function SectionStorageTestBase::testGetSectionInvalidDelta in Drupal 8

@covers ::getSection

File

core/modules/layout_builder/tests/src/Kernel/SectionStorageTestBase.php, line 85

Class

SectionStorageTestBase
Provides a base class for testing implementations of section storage.

Namespace

Drupal\Tests\layout_builder\Kernel

Code

public function testGetSectionInvalidDelta() {
  $this
    ->expectException(\OutOfBoundsException::class);
  $this
    ->expectExceptionMessage('Invalid delta "2"');
  $this->sectionStorage
    ->getSection(2);
}