You are here

public function WebformScheduledResultSetManagerTest::testGetDefinitions in Webform Scheduled Tasks 8.2

Same name in this branch
  1. 8.2 tests/src/Kernel/WebformScheduledTaskManagerTest.php \Drupal\Tests\webform_scheduled_tasks\Kernel\WebformScheduledResultSetManagerTest::testGetDefinitions()
  2. 8.2 tests/src/Kernel/WebformScheduledResultSetManagerTest.php \Drupal\Tests\webform_scheduled_tasks\Kernel\WebformScheduledResultSetManagerTest::testGetDefinitions()

@covers ::getDefinitions

File

tests/src/Kernel/WebformScheduledTaskManagerTest.php, line 26

Class

WebformScheduledResultSetManagerTest
@coversDefaultClass \Drupal\webform_scheduled_tasks\WebformScheduledTaskManager @group webform_scheduled_tasks

Namespace

Drupal\Tests\webform_scheduled_tasks\Kernel

Code

public function testGetDefinitions() {
  $definitions = $this->container
    ->get('plugin.manager.webform_scheduled_tasks.task')
    ->getDefinitions();
  $this
    ->assertArrayHasKey('test_task', $definitions);
}