You are here

public function PublishedFilterTest::setUp in Replication 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/Plugin/ReplicationFilter/PublishedFilterTest.php \Drupal\Tests\replication\Kernel\Plugin\ReplicationFilter\PublishedFilterTest::setUp()

Overrides KernelTestBase::setUp

File

tests/src/Kernel/Plugin/ReplicationFilter/PublishedFilterTest.php, line 34

Class

PublishedFilterTest
Tests that the published filter parses parameters correctly.

Namespace

Drupal\Tests\replication\Kernel\Plugin\ReplicationFilter

Code

public function setUp() {
  parent::setUp();
  $node_type = NodeType::create([
    'type' => 'test',
    'label' => 'Test',
  ]);
  $node_type
    ->save();
  $bundle_type = BlockContentType::create([
    'id' => 'test',
    'label' => 'Test',
  ]);
  $bundle_type
    ->save();
}