Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
TasksProviderTest.php
Go to the documentation of this file.
1 <?php
2 
8 
10 
11 class TasksProviderTest extends \PHPUnit\Framework\TestCase
12 {
16  public function testTasksProviderEmpty()
17  {
19  $tasksProvider = new TasksProvider();
20  $this->assertSame([], $tasksProvider->getTasks());
21  }
22 
23  public function testTasksProvider()
24  {
25  $tasks = [
26  'magentoCron' => ['expressin' => '* * * * *', 'command' => 'bin/magento cron:run'],
27  'magentoSetup' => ['command' => 'bin/magento setup:cron:run'],
28  ];
29 
31  $tasksProvider = new TasksProvider($tasks);
32  $this->assertSame($tasks, $tasksProvider->getTasks());
33  }
34 }