public function GroupContentToEntityRelationshipTest::testGroupOwnerIsListed in Group 2.0.x
Same name and namespace in other branches
- 8 tests/src/Kernel/Views/GroupContentToEntityRelationshipTest.php \Drupal\Tests\group\Kernel\Views\GroupContentToEntityRelationshipTest::testGroupOwnerIsListed()
Tests that a group's owner (default member) is returned by the view.
File
- tests/
src/ Kernel/ Views/ GroupContentToEntityRelationshipTest.php, line 140
Class
- GroupContentToEntityRelationshipTest
- Tests the group_content_to_entity relationship handler.
Namespace
Drupal\Tests\group\Kernel\ViewsCode
public function testGroupOwnerIsListed() {
$this
->createGroup();
$this
->assertEquals(1, count($this
->getViewResults()), 'The view displays the user for the default member.');
}