public function LayoutSectionItemListTest::testEquals in Drupal 8
Same name and namespace in other branches
- 9 core/modules/layout_builder/tests/src/Kernel/LayoutSectionItemListTest.php \Drupal\Tests\layout_builder\Kernel\LayoutSectionItemListTest::testEquals()
@covers ::equals
File
- core/
modules/ layout_builder/ tests/ src/ Kernel/ LayoutSectionItemListTest.php, line 56
Class
- LayoutSectionItemListTest
- Tests the field type for Layout Sections.
Namespace
Drupal\Tests\layout_builder\KernelCode
public function testEquals() {
$this->sectionStorage
->getSection(0)
->setLayoutSettings([
'foo' => 1,
]);
$second_section_storage = clone $this->sectionStorage;
$this
->assertTrue($this->sectionStorage
->equals($second_section_storage));
$second_section_storage
->getSection(0)
->setLayoutSettings([
'foo' => '1',
]);
$this
->assertFalse($this->sectionStorage
->equals($second_section_storage));
}