public function GroupToGroupContentRelationshipTest::testAddedMemberIsListed in Group 8
Same name and namespace in other branches
- 2.0.x tests/src/Kernel/Views/GroupToGroupContentRelationshipTest.php \Drupal\Tests\group\Kernel\Views\GroupToGroupContentRelationshipTest::testAddedMemberIsListed()
Tests that an extra group member is returned by the view.
@depends testGroupOwnerIsListed
File
- tests/
src/ Kernel/ Views/ GroupToGroupContentRelationshipTest.php, line 158
Class
- GroupToGroupContentRelationshipTest
- Tests the group_to_group_content relationship handler.
Namespace
Drupal\Tests\group\Kernel\ViewsCode
public function testAddedMemberIsListed() {
$group = $this
->createGroup();
$group
->addMember($this
->createUser());
$this
->assertEquals(2, count($this
->getViewResults()), 'The view displays both the default and the added member.');
}