NodeTest.php in Workbench Moderation to Content Moderation 8.2
File
tests/src/Functional/NodeTest.php
View source
<?php
namespace Drupal\Tests\wbm2cm\Functional;
class NodeTest extends TestBase {
protected static $modules = [
'content_translation',
'node',
];
protected function setUp() {
parent::setUp();
$this->storage = $this->container
->get('entity_type.manager')
->getStorage('node');
$this
->moderate($this
->drupalCreateContentType())
->save();
$this
->moderate($this
->drupalCreateContentType())
->save();
}
}