Issues (145)

tests/Controller/CheckoutControllerTest.php (1 issue)

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