CheckoutControllerTest::testIndexAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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