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

SupplierControllerTest::testDetail()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 6
rs 10
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