You are here

protected function TaskRunnerTest::setUp in Webform Scheduled Tasks 8.2

Same name in this branch
  1. 8.2 tests/src/Unit/TaskRunnerTest.php \Drupal\Tests\webform_scheduled_tasks\Unit\TaskRunnerTest::setUp()
  2. 8.2 tests/src/Kernel/TaskRunnerTest.php \Drupal\Tests\webform_scheduled_tasks\Kernel\TaskRunnerTest::setUp()

Overrides UnitTestCase::setUp

File

tests/src/Unit/TaskRunnerTest.php, line 33

Class

TaskRunnerTest
@coversDefaultClass \Drupal\webform_scheduled_tasks\TaskRunner @group webform_scheduled_tasks

Namespace

Drupal\Tests\webform_scheduled_tasks\Unit

Code

protected function setUp() {
  parent::setUp();
  $this->taskRunner = new TaskRunner($this
    ->prophesize(EntityTypeManagerInterface::class)
    ->reveal(), $this
    ->prophesize(TimeInterface::class)
    ->reveal());
}