protected function RevisionIsCurrentTest::setUp in Acquia Content Hub 8.2
Throws
\Exception
Overrides QueueingTestBase::setUp
File
- tests/
src/ Kernel/ RevisionIsCurrentTest.php, line 47
Class
- RevisionIsCurrentTest
- Tests that only current published revisions are enqueued.
Namespace
Drupal\Tests\acquia_contenthub\KernelCode
protected function setUp() : void {
parent::setUp();
$this->contentTranslationManager = $this->container
->get('content_translation.manager');
$this
->installEntitySchema('node');
$this
->installEntitySchema('user');
$this
->installEntitySchema('content_moderation_state');
$this
->installSchema('node', [
'node_access',
]);
$this
->installConfig('content_moderation');
ConfigurableLanguage::createFromLangcode('es')
->save();
$this
->createTranslatableNodeTypeWithWorkflow();
}