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