1 | <?php namespace Nwidart\Modules\Tests; |
||
6 | class ModuleTest extends BaseTestCase |
||
7 | { |
||
8 | /** |
||
9 | * @var Module |
||
10 | */ |
||
11 | private $module; |
||
12 | |||
13 | public function setUp() |
||
18 | |||
19 | /** @test */ |
||
20 | public function it_gets_module_name() |
||
24 | |||
25 | /** @test */ |
||
26 | public function it_gets_lowercase_module_name() |
||
30 | |||
31 | /** @test */ |
||
32 | public function it_gets_studly_name() |
||
36 | |||
37 | /** @test */ |
||
38 | public function it_gets_module_description() |
||
42 | |||
43 | /** @test */ |
||
44 | public function it_gets_module_alias() |
||
48 | |||
49 | /** @test */ |
||
50 | public function it_gets_module_path() |
||
54 | |||
55 | /** @test */ |
||
56 | public function it_loads_module_translations() |
||
62 | |||
63 | /** @test */ |
||
64 | public function it_reads_module_json_files() |
||
74 | |||
75 | /** @test */ |
||
76 | public function it_reads_key_from_module_json_file_via_helper_method() |
||
82 | |||
83 | /** @test */ |
||
84 | public function it_reads_key_from_composer_json_file_via_helper_method() |
||
88 | |||
89 | /** @test */ |
||
90 | public function it_casts_module_to_string() |
||
94 | |||
95 | /** @test */ |
||
96 | public function it_module_status_check() |
||
101 | |||
102 | /** @test */ |
||
103 | public function it_checks_module_enabled_status() |
||
110 | } |
||
111 |