protected function BlazyEntityReferenceFormatterTest::setUp in Blazy 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ BlazyEntityReferenceFormatterTest.php, line 55
Class
- BlazyEntityReferenceFormatterTest
- Tests the Blazy entity reference file formatter.
Namespace
Drupal\Tests\blazy\KernelCode
protected function setUp() {
parent::setUp();
$this
->setUpVariables();
$this
->setUpKernelInstall();
$this
->setUpKernelManager();
$this->entityFieldName = 'field_entity_test';
$this->entityPluginId = 'blazy_entity_test';
$this->targetBundle = 'bundle_target_test';
$this->targetBundles = [
$this->targetBundle,
];
$this->blazyAdminTest = $this->container
->get('blazy_test.admin');
$this->formatterInstance = $this
->getFormatterInstance($this->entityPluginId, $this->entityFieldName);
}