You are here

public function GroupSubscribeFormatterTest::testGroupOwner in Organic groups 8

Tests the formatter for a group owner.

File

tests/src/Unit/GroupSubscribeFormatterTest.php, line 237

Class

GroupSubscribeFormatterTest
Tests the OG group formatter.

Namespace

Drupal\Tests\og\Unit

Code

public function testGroupOwner() {

  // Return the same ID as the user.
  $this->group
    ->getOwnerId()
    ->willReturn($this->userId);
  $elements = $this
    ->getElements();
  $this
    ->assertEquals('You are the group manager', $elements[0]['#value']);
}