| 1 | <?php |
||
| 2 | declare(strict_types=1); |
||
| 3 | |||
| 4 | namespace JCIT\jobqueue\tests\unit\events; |
||
| 5 | |||
| 6 | use Codeception\Test\Unit; |
||
| 7 | use JCIT\jobqueue\events\JobQueueEvent; |
||
| 8 | use JCIT\jobqueue\jobs\HelloJob; |
||
| 9 | |||
| 10 | class JobQueueEventTest extends Unit |
||
| 11 | { |
||
| 12 | public function testGetJob(): void |
||
| 13 | { |
||
| 14 | $name = 'Test'; |
||
| 15 | $job = new HelloJob($name); |
||
| 16 | |||
| 17 | $jobQueueEvent = new JobQueueEvent($job); |
||
| 18 | $this->assertEquals($name, $jobQueueEvent->getJob()->getName()); |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 19 | } |
||
| 20 | } |
||
| 21 |