PageControllerTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testPrivacy() 0 6 1
A testTerms() 0 6 1
1
<?php
2
3
namespace Aimeos\ShopBundle\Tests\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
6
7
8
class PageControllerTest extends WebTestCase
9
{
10
	public function testTerms()
11
	{
12
		$client = static::createClient();
13
		$crawler = $client->request( 'GET', '/unittest/de/EUR/terms' );
14
15
		$this->assertEquals( 1, $crawler->filter( 'body:contains("Terms")' )->count() );
16
	}
17
18
19
	public function testPrivacy()
20
	{
21
		$client = static::createClient();
22
		$crawler = $client->request( 'GET', '/unittest/de/EUR/privacy' );
23
24
		$this->assertEquals( 1, $crawler->filter( 'body:contains("Privacy")' )->count() );
25
	}
26
}
27