Total Complexity | 1 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class ValidatesExistenceTest extends TestCase |
||
14 | { |
||
15 | public function test_validate_existence_does_nothing_if_file_exists() |
||
16 | { |
||
17 | $class = new class |
||
18 | { |
||
19 | use ValidatesExistence; |
||
20 | }; |
||
21 | |||
22 | $class->validateExistence(BladePage::class, 'index'); |
||
23 | |||
24 | $this->assertTrue(true); |
||
25 | } |
||
26 | |||
27 | public function test_validate_existence_throws_file_not_found_exception_if_file_does_not_exist() |
||
28 | { |
||
29 | $this->expectException(FileNotFoundException::class); |
||
30 | |||
31 | $class = new class |
||
32 | { |
||
33 | use ValidatesExistence; |
||
34 | }; |
||
35 | |||
36 | $class->validateExistence(BladePage::class, 'not-found'); |
||
37 | } |
||
39 |