action = $this->actionManager->createInstance('islandora_create_event_generator'); } /** * Tests the CreateEventGenerator action. * * @covers \Drupal\islandora\Plugin\RulesAction\CreateEventGenerator::execute */ public function testExecute() { // Execute the action and get the message it outputs. $msg = $this->assertExecution(); // Assert it's outputs a 'Create' event. $this->assertTrue($msg["type"] == "Create", "Event must be of type 'Create'."); } }