Completed
Push — develop ( 7623eb...611a18 )
by Tom
03:37
created

ListCommandTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace N98\Magento\Command\Developer\Module\Observer;
4
5
use N98\Magento\Command\TestCase;
6
7
class ListCommandTest extends TestCase
8
{
9
    const GLOBAL_EVENT_NAME = 'customer_address_save_before';
10
    const CRONTAB_OBSERVER_NAME = 'cron_observer';
11
12
    public function testGlobalList()
13
    {
14
        $this->assertDisplayContains(
15
            array('command' => 'dev:module:observer:list', 'area' => 'global'),
16
            self::GLOBAL_EVENT_NAME
17
        );
18
    }
19
20
    public function testCrontabList()
21
    {
22
        $this->assertDisplayContains(
23
            array('command' => 'dev:module:observer:list', 'area' => 'crontab'),
24
            self::CRONTAB_OBSERVER_NAME
25
        );
26
    }
27
}
28