Completed
Branch master (136162)
by Aimeos
06:57
created

CheckoutControllerTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
class CheckoutControllerTest extends AimeosTestAbstract
4
{
5
	public function setUp()
6
	{
7
		parent::setUp();
8
		View::addLocation(dirname(__DIR__).'/fixtures/views');
9
	}
10
11
12
	public function testConfirmAction()
13
	{
14
		$response = $this->action('GET', '\Aimeos\Shop\Controller\CheckoutController@confirmAction', ['site' => 'unittest']);
15
16
		$this->assertResponseOk();
17
		$this->assertContains('<section class="aimeos checkout-confirm"', $response->getContent());
18
	}
19
20
21
	public function testIndexAction()
22
	{
23
		$response = $this->action('GET', '\Aimeos\Shop\Controller\CheckoutController@indexAction', ['site' => 'unittest']);
24
25
		$this->assertResponseOk();
26
		$this->assertContains('<section class="checkout-standard-address"', $response->getContent());
27
	}
28
29
30
	public function testUpdateAction()
31
	{
32
		$response = $this->action('GET', '\Aimeos\Shop\Controller\CheckoutController@updateAction', ['site' => 'unittest'], ['code' => 'paypalexpress']);
33
34
		$this->assertResponseOk();
35
		$this->assertEquals('', $response->getContent());
36
	}
37
}