AccountCommandTest   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 4
eloc 9
c 3
b 0
f 0
dl 0
loc 27
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A testAccountCommandEditor() 0 4 1
A testAccountCommandAdmin() 0 4 1
A testAccountCommandApi() 0 4 1
A testAccountCommandNew() 0 4 1
1
<?php
2
3
class AccountCommandTest extends AimeosTestAbstract
4
{
5
	public function testAccountCommandNew()
6
	{
7
		$args = array('site' => 'unittest', 'email' => '[email protected]', '--password' => 'test');
8
		$this->assertEquals(0, $this->artisan('aimeos:account', $args));
9
	}
10
11
12
	public function testAccountCommandAdmin()
13
	{
14
		$args = array('site' => 'unittest', 'email' => '[email protected]', '--password' => 'test', '--admin' => true);
15
		$this->assertEquals(0, $this->artisan('aimeos:account', $args));
16
	}
17
18
19
	public function testAccountCommandApi()
20
	{
21
		$args = array('site' => 'unittest', 'email' => '[email protected]', '--password' => 'test', '--api' => true);
22
		$this->assertEquals(0, $this->artisan('aimeos:account', $args));
23
	}
24
25
26
	public function testAccountCommandEditor()
27
	{
28
		$args = array('site' => 'unittest', 'email' => '[email protected]', '--password' => 'test', '--editor' => true);
29
		$this->assertEquals(0, $this->artisan('aimeos:account', $args));
30
	}
31
}
32