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
|
|
|
|