You are here

protected function EntityListBuilderTest::setUp in Apigee Edge 8

Throws

\Exception

Overrides KernelTestBase::setUp

File

tests/src/Kernel/Entity/ListBuilder/EntityListBuilderTest.php, line 85

Class

EntityListBuilderTest
Tests for EntityListBuilder.

Namespace

Drupal\Tests\apigee_edge\Kernel\Entity\ListBuilder

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('user');
  $this
    ->installSchema('system', [
    'sequences',
  ]);
  $this
    ->installConfig([
    'apigee_edge',
  ]);
  $this
    ->apigeeTestHelperSetup();
  $this
    ->addOrganizationMatchedResponse();
  $this->account = User::create([
    'mail' => $this
      ->randomMachineName() . '@example.com',
    'name' => $this
      ->randomMachineName(),
    'first_name' => $this
      ->getRandomGenerator()
      ->word(16),
    'last_name' => $this
      ->getRandomGenerator()
      ->word(16),
  ]);
  $this->account
    ->save();
}