protected function GroupToGroupContentRelationshipTest::getViewResults in Group 2.0.x
Same name and namespace in other branches
- 8 tests/src/Kernel/Views/GroupToGroupContentRelationshipTest.php \Drupal\Tests\group\Kernel\Views\GroupToGroupContentRelationshipTest::getViewResults()
Retrieves the results for this test's view.
Return value
\Drupal\views\ResultRow[] A list of view results.
3 calls to GroupToGroupContentRelationshipTest::getViewResults()
- GroupToGroupContentRelationshipTest::testAddedMemberIsListed in tests/
src/ Kernel/ Views/ GroupToGroupContentRelationshipTest.php - Tests that an extra group member is returned by the view.
- GroupToGroupContentRelationshipTest::testGroupOwnerIsListed in tests/
src/ Kernel/ Views/ GroupToGroupContentRelationshipTest.php - Tests that a group's owner (default member) is returned by the view.
- GroupToGroupContentRelationshipTest::testOtherContentIsNotListed in tests/
src/ Kernel/ Views/ GroupToGroupContentRelationshipTest.php - Tests that any other group content is not returned by the view.
File
- tests/
src/ Kernel/ Views/ GroupToGroupContentRelationshipTest.php, line 133
Class
- GroupToGroupContentRelationshipTest
- Tests the group_to_group_content relationship handler.
Namespace
Drupal\Tests\group\Kernel\ViewsCode
protected function getViewResults() {
$view = Views::getView('test_group_to_group_content_relationship');
$view
->setDisplay();
if ($view
->preview()) {
return $view->result;
}
return [];
}