You are here

public function CreateNewRevisionTest::setUp in Acquia Content Hub 8.2

Overrides AcquiaContentHubSerializerTestBase::setUp

File

tests/src/Kernel/EventSubscriber/PreEntitySave/CreateNewRevisionTest.php, line 34

Class

CreateNewRevisionTest
Test that new revisions are handled correctly in PreEntitySave event.

Namespace

Drupal\Tests\acquia_contenthub\Kernel\EventSubscriber\PreEntitySave

Code

public function setUp() : void {
  parent::setUp();
  $stub_tracker = $this->container
    ->get('acquia_contenthub.stub.tracker');
  $this->createNewRevision = new CreateNewRevision($stub_tracker);
}