Passed
Push — master ( c2be73...f04b65 )
by Aimeos
04:06
created

FacadesTest::testService()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
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::uses( [] ) );
0 ignored issues
show
Bug introduced by
The method uses() does not exist on Aimeos\Shop\Facades\Locale. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

38
		$this->assertInstanceOf( \Aimeos\Controller\Frontend\Iface::class, \Aimeos\Shop\Facades\Locale::/** @scrutinizer ignore-call */ uses( [] ) );
Loading history...
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::uses( [] ) );
0 ignored issues
show
Bug introduced by
The method uses() does not exist on Aimeos\Shop\Facades\Stock. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

62
		$this->assertInstanceOf( \Aimeos\Controller\Frontend\Iface::class, \Aimeos\Shop\Facades\Stock::/** @scrutinizer ignore-call */ uses( [] ) );
Loading history...
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