You are here

public function GroupContentToEntityRelationshipTest::testRegularUserIsNotListed in Group 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Kernel/Views/GroupContentToEntityRelationshipTest.php \Drupal\Tests\group\Kernel\Views\GroupContentToEntityRelationshipTest::testRegularUserIsNotListed()

Tests that a regular user is not returned by the view.

File

tests/src/Kernel/Views/GroupContentToEntityRelationshipTest.php, line 132

Class

GroupContentToEntityRelationshipTest
Tests the group_content_to_entity relationship handler.

Namespace

Drupal\Tests\group\Kernel\Views

Code

public function testRegularUserIsNotListed() {
  $this
    ->createUser();
  $this
    ->assertEquals(0, count($this
    ->getViewResults()), 'The view does not show regular users.');
}