You are here

protected function DeveloperAppUITestTrait::getApps in Apigee Edge 8

Loads all apps for a given user.

Parameters

string $email: Email address of a user.

Return value

\Drupal\apigee_edge\Entity\DeveloperAppInterface[]|null Array of developer apps of the user or if user does not exist as developer on Apigee Edge.

Overrides ApigeeEdgeFunctionalTestTrait::getApps

2 calls to DeveloperAppUITestTrait::getApps()
DeveloperAppUITest::testCreateAndDeleteApp in tests/src/Functional/DeveloperAppUITest.php
Creates and deletes an app.
DeveloperAppUITestTrait::assertDeveloperAppExists in tests/src/Functional/DeveloperAppUITestTrait.php
Asserts that a certain app exists.

File

tests/src/Functional/DeveloperAppUITestTrait.php, line 149

Class

DeveloperAppUITestTrait
Contains re-usable components for developer app UI tests.

Namespace

Drupal\Tests\apigee_edge\Functional

Code

protected function getApps(?string $email = NULL) : ?array {
  if ($email === NULL) {
    $email = $this->account
      ->getEmail();
  }
  return parent::getApps($email);
}