protected function EntityTypeOrBundleExcludeTest::setUp in Acquia Content Hub 8.2
Throws
\Exception
Overrides QueueingTestBase::setUp
File
- tests/
src/ Kernel/ EntityTypeOrBundleExcludeTest.php, line 33
Class
- EntityTypeOrBundleExcludeTest
- Tests that selected entities are successfully excluded for the queue.
Namespace
Drupal\Tests\acquia_contenthub\KernelCode
protected function setUp() : void {
parent::setUp();
$this
->installEntitySchema('node');
$this
->installEntitySchema('user');
$this
->installSchema('node', [
'node_access',
]);
$this
->installSchema('system', [
'sequences',
]);
$this
->installConfig([
'acquia_contenthub_publisher',
]);
$config_factory = \Drupal::configFactory();
$config = $config_factory
->getEditable('acquia_contenthub_publisher.exclude_settings');
$config
->set('exclude_entity_types', [
'node_type',
'user',
])
->set('exclude_bundles', [
'node:bundle_test',
]);
$config
->save();
}