|
@@ 44-50 (lines=7) @@
|
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
/** @test */ |
| 44 |
|
public function it_returns_all_enabled_modules() |
| 45 |
|
{ |
| 46 |
|
$this->repository->addLocation(__DIR__ . '/stubs'); |
| 47 |
|
|
| 48 |
|
$this->assertCount(1, $this->repository->getByStatus(1)); |
| 49 |
|
$this->assertCount(1, $this->repository->enabled()); |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
/** @test */ |
| 53 |
|
public function it_returns_all_disabled_modules() |
|
@@ 53-59 (lines=7) @@
|
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
/** @test */ |
| 53 |
|
public function it_returns_all_disabled_modules() |
| 54 |
|
{ |
| 55 |
|
$this->repository->addLocation(__DIR__ . '/stubs'); |
| 56 |
|
|
| 57 |
|
$this->assertCount(0, $this->repository->getByStatus(0)); |
| 58 |
|
$this->assertCount(0, $this->repository->disabled()); |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
/** @test */ |
| 62 |
|
public function it_counts_all_modules() |