ModuleManagerTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
dl 0
loc 23
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 11 1
A testContentStorage() 0 5 1
1
<?php
2
3
namespace Epesi\Core\Tests;
4
5
use Orchestra\Testbench\TestCase;
6
use Epesi\Core\System\Modules\ModuleManager;
7
// use Epesi\Core\Layout\LayoutCore;
8
9
class ModuleManagerTest extends TestCase
10
{
11
    /**
12
     * Setup the test environment.
13
     */
14
    protected function setUp(): void
15
    {
16
        parent::setUp();
17
        
18
        config([
19
                'epesi.modules' => [
20
                        '\\Epesi\\Core\\' => __DIR__ . implode(DIRECTORY_SEPARATOR, ['..', '..', 'src']),
21
                ]
22
        ]);
23
        
24
        ModuleManager::install('system');
25
    }
26
    
27
    public function testContentStorage()
28
    {
29
        $installedModules = ModuleManager::getInstalled();
30
        
31
        $this->assertArrayHasKey('system', $installedModules, 'System module not installed');
32
    }
33
    
34
35
}