Completed
Push — master ( 3cc055...006e5b )
by hu
02:38
created

ThemeTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testSetTheme() 0 6 1
A testActiveTheme() 0 6 1
1
<?php
2
3
/*
4
 * This file is part of the trendsoft/themes.
5
 * (c) jabber <[email protected]>
6
 * This source file is subject to the MIT license that is bundled
7
 * with this source code in the file LICENSE.
8
 */
9
10
namespace Tests\Feature;
11
12
use Tests\TestCase;
13
use Themes\Theme;
14
15
class ThemeTest extends TestCase
16
{
17
    /**
18
     * @dataProvider configProvider
19
     */
20
    public function testSetTheme($config)
21
    {
22
        $theme = new Theme($config);
23
        $theme->setCurrent('default');
24
        $this->assertSame('default', $theme->getCurrent());
25
    }
26
27
    /**
28
     * @dataProvider configProvider
29
     */
30
    public function testActiveTheme($config)
31
    {
32
        $theme = new Theme($config);
33
        $theme->active('default');
34
        $this->assertSame('default', $theme->getCurrent());
35
    }
36
}
37