BasketControllerTest::testActions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 9
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
class BasketControllerTest extends AimeosTestAbstract
4
{
5
	public function testActions()
6
	{
7
		View::addLocation( dirname( __DIR__ ) . '/fixtures/views' );
8
9
		$response = $this->action( 'GET', '\Aimeos\Shop\Controller\BasketController@indexAction', ['site' => 'unittest'] );
10
11
		$this->assertResponseOk();
12
		$this->assertStringContainsString( '<div class="section aimeos basket-standard"', $response->getContent() );
13
		$this->assertStringContainsString( '<div class="section aimeos basket-related"', $response->getContent() );
14
	}
15
}