You are here

public function LayoutSectionItemListTest::testEqualsNonSection in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/tests/src/Kernel/LayoutSectionItemListTest.php \Drupal\Tests\layout_builder\Kernel\LayoutSectionItemListTest::testEqualsNonSection()

@covers ::equals

File

core/modules/layout_builder/tests/src/Kernel/LayoutSectionItemListTest.php, line 69

Class

LayoutSectionItemListTest
Tests the field type for Layout Sections.

Namespace

Drupal\Tests\layout_builder\Kernel

Code

public function testEqualsNonSection() {
  $list = $this
    ->prophesize(FieldItemListInterface::class);
  $this
    ->assertFalse($this->sectionList
    ->equals($list
    ->reveal()));
}