Passed
Push — master ( df512e...3ff0f7 )
by Aimeos
16:16
created

SupplierControllerTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testDetail() 0 6 1
1
<?php
2
3
namespace Aimeos\ShopBundle\Tests\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
6
7
8
class SupplierControllerTest extends WebTestCase
9
{
10
	protected function setUp() : void
11
	{
12
		\Aimeos\MShop::cache( false );
13
		\Aimeos\Controller\Frontend::cache( false );
14
	}
15
16
17
	public function testDetail()
18
	{
19
		$client = static::createClient();
20
		$crawler = $client->request( 'GET', '/unittest/de/EUR/s/TestSupplier/123' );
21
22
		$this->assertEquals( 1, $crawler->filter( '.supplier-detail' )->count() );
23
	}
24
}
25