BasketControllerTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 11
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testActions() 0 9 1
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
}