AdminControllerTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testIndex() 0 9 1
1
<?php
2
3
namespace Aimeos\ShopBundle\Tests\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
6
7
8
class AdminControllerTest extends WebTestCase
9
{
10
	public function testIndex()
11
	{
12
		$client = static::createClient();
13
14
		$client->request( 'GET', '/admin' );
15
		$response = $client->getResponse();
16
17
		$this->assertEquals( 200, $response->getStatusCode() );
18
		$this->assertStringContainsString( '<form class="login"', $response->getContent() );
19
	}
20
}
21