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

ListCommandTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testGlobalList() 0 7 1
A testCrontabList() 0 7 1
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