protected function ApigeeEdgeActionsRulesKernelTestBase::setUp in Apigee Edge 8
Overrides RulesKernelTestBase::setUp
2 calls to ApigeeEdgeActionsRulesKernelTestBase::setUp()
- EdgeEntityAddMemberEventTest::setUp in modules/
apigee_edge_actions/ tests/ src/ Kernel/ Plugin/ RulesEvent/ EdgeEntityAddMemberEventTest.php - EdgeEntityRemoveMemberEventTest::setUp in modules/
apigee_edge_actions/ tests/ src/ Kernel/ Plugin/ RulesEvent/ EdgeEntityRemoveMemberEventTest.php
2 methods override ApigeeEdgeActionsRulesKernelTestBase::setUp()
- EdgeEntityAddMemberEventTest::setUp in modules/
apigee_edge_actions/ tests/ src/ Kernel/ Plugin/ RulesEvent/ EdgeEntityAddMemberEventTest.php - EdgeEntityRemoveMemberEventTest::setUp in modules/
apigee_edge_actions/ tests/ src/ Kernel/ Plugin/ RulesEvent/ EdgeEntityRemoveMemberEventTest.php
File
- modules/
apigee_edge_actions/ tests/ src/ Kernel/ ApigeeEdgeActionsRulesKernelTestBase.php, line 69
Class
- ApigeeEdgeActionsRulesKernelTestBase
- Provides a base class for testing Edge entity events.
Namespace
Drupal\Tests\apigee_edge_actions\KernelCode
protected function setUp() {
parent::setUp();
$this->storage = $this->container
->get('entity_type.manager')
->getStorage('rules_reaction_rule');
$this
->installConfig([
'apigee_edge',
]);
$this
->installEntitySchema('user');
$this
->installSchema('dblog', [
'watchdog',
]);
$this
->installSchema('system', [
'sequences',
]);
$this
->installSchema('user', [
'users_data',
]);
$this
->baseSetUp();
/** @var \Drupal\user\UserInterface $account */
$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
->queueDeveloperResponse($this->account, Response::HTTP_CREATED);
$this->account
->save();
}