You are here

public function LayoutSectionItemListTest::testEqualsNonSection in Drupal 8

Same name and namespace in other branches
  1. 9 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->sectionStorage
    ->equals($list
    ->reveal()));
}