protected function GroupSubscribeFormatterTest::getElements in Organic groups 8
Helper method; Return the renderable elements from the formatter.
Return value
array The renderable array.
7 calls to GroupSubscribeFormatterTest::getElements()
- GroupSubscribeFormatterTest::testBlockedMember in tests/
src/ Unit/ GroupSubscribeFormatterTest.php - Tests the formatter for a blocked member.
- GroupSubscribeFormatterTest::testGroupMemberActive in tests/
src/ Unit/ GroupSubscribeFormatterTest.php - Tests the formatter for an "active" group member.
- GroupSubscribeFormatterTest::testGroupOwner in tests/
src/ Unit/ GroupSubscribeFormatterTest.php - Tests the formatter for a group owner.
- GroupSubscribeFormatterTest::testMember in tests/
src/ Unit/ GroupSubscribeFormatterTest.php - Tests the formatter for an active or pending member.
- GroupSubscribeFormatterTest::testNoSubscribePermission in tests/
src/ Unit/ GroupSubscribeFormatterTest.php - Tests the formatter for no subscribe permission.
File
- tests/
src/ Unit/ GroupSubscribeFormatterTest.php, line 360
Class
- GroupSubscribeFormatterTest
- Tests the OG group formatter.
Namespace
Drupal\Tests\og\UnitCode
protected function getElements() {
$formatter = new GroupSubscribeFormatter('', [], $this->fieldDefinitionInterface
->reveal(), [], '', '', [], $this->accountProxy
->reveal(), $this->ogAccess
->reveal(), $this->entityTypeManager
->reveal());
return $formatter
->viewElements($this->fieldItemList
->reveal(), $this
->randomMachineName());
}