function LayoutSectionItemListTest::testEquals
@covers ::equals
File
-
core/
modules/ layout_builder/ tests/ src/ Kernel/ LayoutSectionItemListTest.php, line 59
Class
- LayoutSectionItemListTest
- Tests the field type for Layout Sections.
Namespace
Drupal\Tests\layout_builder\KernelCode
public function testEquals() : void {
$this->sectionList
->getSection(0)
->setLayoutSettings([
'foo' => 1,
]);
$second_section_storage = clone $this->sectionList;
$this->assertTrue($this->sectionList
->equals($second_section_storage));
$second_section_storage->getSection(0)
->setLayoutSettings([
'foo' => '1',
]);
$this->assertFalse($this->sectionList
->equals($second_section_storage));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.