protected function CacheTest::setUp in Apigee Edge 8
Overrides ApigeeEdgeFunctionalJavascriptTestBase::setUp
File
- tests/
src/ FunctionalJavascript/ CacheTest.php, line 68
Class
- CacheTest
- Apigee Edge entity cache related tests.
Namespace
Drupal\Tests\apigee_edge\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
$this->account = $this
->createAccount([
'create developer_app',
'view own developer_app',
'update own developer_app',
'delete own developer_app',
]);
$this->developer = Developer::load($this->account
->getEmail());
$this->developerApp = DeveloperApp::create([
'name' => $this
->randomMachineName(),
'status' => App::STATUS_APPROVED,
'developerId' => $this->developer
->uuid(),
]);
$this->developerApp
->save();
// Disable API products field on the developer app form so we can submit
// the form without creating products.
$this
->config('apigee_edge.common_app_settings')
->set('user_select', FALSE)
->save();
$this
->drupalLogin($this->account);
$this->cacheBackend = $this->container
->get('cache.apigee_edge_entity');
}