You are here

protected function NodeTest::setUp in Workbench Moderation to Content Moderation 8.2

Same name in this branch
  1. 8.2 tests/src/Functional/NodeTest.php \Drupal\Tests\wbm2cm\Functional\NodeTest::setUp()
  2. 8.2 tests/src/Kernel/Migration/NodeTest.php \Drupal\Tests\wbm2cm\Kernel\Migration\NodeTest::setUp()

Overrides TestBase::setUp

File

tests/src/Functional/NodeTest.php, line 21

Class

NodeTest
@group wbm2cm

Namespace

Drupal\Tests\wbm2cm\Functional

Code

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();
}