protected function CivicrmEntityTestBase::setUp in CiviCRM Entity 8.3
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ CivicrmEntityTestBase.php, line 33
Class
- CivicrmEntityTestBase
- Test base to aid in mocking the CiviCRM API.
Namespace
Drupal\Tests\civicrm_entity\KernelCode
protected function setUp() {
parent::setUp();
require __DIR__ . '/../Type.php';
require __DIR__ . '/../CiviCrmDaoStubs.php';
$this
->mockCiviCrmApi();
$this
->config('civicrm_entity.settings')
->set('enabled_entity_types', [
'civicrm_event',
])
->save();
}