You are here

public function SelectionHandlerTest::testSelectionHandler in Organic groups 8

Testing the OG manager selection handler.

We need to verify that the manager selection handler will use the default selection manager of the entity which the audience field referencing to.

i.e: When the field referencing to node, we need verify we got the default node selection handler.

File

tests/src/Kernel/Entity/SelectionHandlerTest.php, line 145

Class

SelectionHandlerTest
Tests entity reference selection plugins.

Namespace

Drupal\Tests\og\Kernel\Entity

Code

public function testSelectionHandler() {
  $this
    ->assertEquals(get_class($this->selectionHandler
    ->getSelectionHandler()), 'Drupal\\node\\Plugin\\EntityReferenceSelection\\NodeSelection');
}