You are here

protected function TeamInvitationsTest::setUp in Apigee Edge 8

Overrides ApigeeEdgeFunctionalTestBase::setUp

File

modules/apigee_edge_teams/tests/src/Functional/TeamInvitationsTest.php, line 83

Class

TeamInvitationsTest
Team invitation test.

Namespace

Drupal\Tests\apigee_edge_teams\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->addOrganizationMatchedResponse();
  $this->teamA = $this
    ->createTeam();
  $this->teamB = $this
    ->createTeam();
  $this->accountAdmin = $this
    ->createAccount([
    'administer team',
  ]);
  $this->accountUser = $this
    ->createAccount([
    'accept own team invitation',
  ]);
  if (!$this->integration_enabled) {
    $this
      ->queueDeveloperResponse($this->accountAdmin);
    Developer::load($this->accountAdmin
      ->getEmail());
    $this
      ->queueDeveloperResponse($this->accountUser);
    Developer::load($this->accountUser
      ->getEmail());
  }
}