FacadesTest   A
last analyzed

Complexity

Total Complexity 12

Size/Duplication

Total Lines 71
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 12
eloc 13
c 2
b 0
f 0
dl 0
loc 71
rs 10

12 Methods

Rating   Name   Duplication   Size   Complexity  
A testSubscription() 0 3 1
A testCatalog() 0 3 1
A testCms() 0 3 1
A testAttribute() 0 3 1
A testService() 0 3 1
A testCustomer() 0 3 1
A testLocale() 0 3 1
A testStock() 0 3 1
A testOrder() 0 3 1
A testBasket() 0 3 1
A testProduct() 0 3 1
A testSupplier() 0 3 1
1
<?php
2
3
4
class FacadesTest extends AimeosTestAbstract
5
{
6
	public function testAttribute()
7
	{
8
		$this->assertInstanceOf( \Aimeos\Controller\Frontend\Iface::class, \Aimeos\Shop\Facades\Attribute::uses( [] ) );
9
	}
10
11
12
	public function testBasket()
13
	{
14
		$this->assertInstanceOf( \Aimeos\Controller\Frontend\Iface::class, \Aimeos\Shop\Facades\Basket::clear() );
15
	}
16
17
18
	public function testCatalog()
19
	{
20
		$this->assertInstanceOf( \Aimeos\Controller\Frontend\Iface::class, \Aimeos\Shop\Facades\Catalog::uses( [] ) );
21
	}
22
23
24
	public function testCms()
25
	{
26
		$this->assertInstanceOf( \Aimeos\Controller\Frontend\Iface::class, \Aimeos\Shop\Facades\Cms::uses( [] ) );
27
	}
28
29
30
	public function testCustomer()
31
	{
32
		$this->assertInstanceOf( \Aimeos\Controller\Frontend\Iface::class, \Aimeos\Shop\Facades\Customer::uses( [] ) );
33
	}
34
35
36
	public function testLocale()
37
	{
38
		$this->assertInstanceOf( \Aimeos\Controller\Frontend\Iface::class, \Aimeos\Shop\Facades\Locale::compare( '==', 'locale.id', -1 ) );
39
	}
40
41
42
	public function testOrder()
43
	{
44
		$this->assertInstanceOf( \Aimeos\Controller\Frontend\Iface::class, \Aimeos\Shop\Facades\Order::uses( [] ) );
45
	}
46
47
48
	public function testProduct()
49
	{
50
		$this->assertInstanceOf( \Aimeos\Controller\Frontend\Iface::class, \Aimeos\Shop\Facades\Product::uses( [] ) );
51
	}
52
53
54
	public function testService()
55
	{
56
		$this->assertInstanceOf( \Aimeos\Controller\Frontend\Iface::class, \Aimeos\Shop\Facades\Service::uses( [] ) );
57
	}
58
59
60
	public function testStock()
61
	{
62
		$this->assertInstanceOf( \Aimeos\Controller\Frontend\Iface::class, \Aimeos\Shop\Facades\Stock::compare( '==', 'stock.id', -1 ) );
63
	}
64
65
66
	public function testSubscription()
67
	{
68
		$this->assertInstanceOf( \Aimeos\Controller\Frontend\Iface::class, \Aimeos\Shop\Facades\Subscription::uses( [] ) );
69
	}
70
71
72
	public function testSupplier()
73
	{
74
		$this->assertInstanceOf( \Aimeos\Controller\Frontend\Iface::class, \Aimeos\Shop\Facades\Supplier::uses( [] ) );
75
	}
76
}
77