function LayoutSectionItemListTest::testEqualsNonSection

Same name in other branches
  1. 9 core/modules/layout_builder/tests/src/Kernel/LayoutSectionItemListTest.php \Drupal\Tests\layout_builder\Kernel\LayoutSectionItemListTest::testEqualsNonSection()
  2. 10 core/modules/layout_builder/tests/src/Kernel/LayoutSectionItemListTest.php \Drupal\Tests\layout_builder\Kernel\LayoutSectionItemListTest::testEqualsNonSection()
  3. 11.x 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()));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.