public function GroupToGroupContentRelationshipTest::testOtherContentIsNotListed 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::testOtherContentIsNotListed()
Tests that any other group content is not returned by the view.
@depends testGroupOwnerIsListed
File
- tests/
src/ Kernel/ Views/ GroupToGroupContentRelationshipTest.php, line 169
Class
- GroupToGroupContentRelationshipTest
- Tests the group_to_group_content relationship handler.
Namespace
Drupal\Tests\group\Kernel\ViewsCode
public function testOtherContentIsNotListed() {
$group = $this
->createGroup();
$group
->addContent($this
->createUser(), 'user_as_content');
$this
->assertEquals(1, count($this
->getViewResults()), 'The view only displays the default member and not the user that was added as content.');
}