These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of Laravel Paket. |
||
5 | * |
||
6 | * (c) Anton Komarev <[email protected]> |
||
7 | * |
||
8 | * For the full copyright and license information, please view the LICENSE |
||
9 | * file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | declare(strict_types=1); |
||
13 | |||
14 | namespace Cog\Tests\Laravel\Paket\Unit\Job\Entities; |
||
15 | |||
16 | use Cog\Laravel\Paket\Job\Entities\Job; |
||
17 | use Cog\Tests\Laravel\Paket\TestCase; |
||
18 | |||
19 | final class JobTest extends TestCase |
||
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
20 | { |
||
21 | /** @test */ |
||
22 | public function it_can_instantiate_of_type(): void |
||
23 | { |
||
24 | $job = Job::ofType('TestType'); |
||
25 | |||
26 | $this->assertInstanceOf(Job::class, $job); |
||
27 | $this->assertSame('TestType', $job->getType()); |
||
28 | } |
||
29 | } |
||
30 |