protected function ScheduleIntervalTest::setUp in Webform Scheduled Tasks 8.2
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ ScheduleIntervalTest.php, line 33
Class
- ScheduleIntervalTest
- Test the scheduling intervals.
Namespace
Drupal\Tests\webform_scheduled_tasks\KernelCode
protected function setUp() {
parent::setUp();
$this
->installSchema('webform', [
'webform',
]);
$this
->installEntitySchema('webform_submission');
$this
->installEntitySchema('user');
$time = $this
->prophesize(TimeInterface::class);
$time
->getRequestTime()
->willReturn(1000000000);
$this->container
->set('datetime.time', $time
->reveal());
}