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

ThemeTest::testSetTheme()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 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