function SectionStorageTestBase::testGetSectionInvalidDelta
@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\KernelCode
public function testGetSectionInvalidDelta() {
$this->expectException(\OutOfBoundsException::class);
$this->expectExceptionMessage('Invalid delta "2"');
$this->sectionStorage
->getSection(2);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.