Completed
Push — master ( 29ee36...16ede1 )
by Tom
03:58
created

DemoNoticeCommandTest::testExecute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 20
Code Lines 13

Duplication

Lines 20
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 20
loc 20
rs 9.4285
cc 1
eloc 13
nc 1
nop 0
1
<?php
2
3
namespace N98\Magento\Command\Design;
4
5
use N98\Magento\Command\TestCase;
6
7 View Code Duplication
class DemoNoticeCommandTest extends TestCase
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
8
{
9
    public function testExecute()
10
    {
11
        $this->assertDisplayContains(
12
            array(
13
                'command'  => 'design:demo-notice',
14
                '--global' => true,
15
                '--on'     => true,
16
            ),
17
            'Demo Notice enabled'
18
        );
19
20
        $this->assertDisplayContains(
21
            array(
22
                'command'  => 'design:demo-notice',
23
                '--global' => true,
24
                '--off'    => true,
25
            ),
26
            'Demo Notice disabled'
27
        );
28
    }
29
}
30