Completed
Push — master ( 1e91bb...cc7294 )
by Aimeos
13:30
created

AccountControllerTest::testDownload()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Aimeos\ShopBundle\Tests\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
6
7
8
class AccountControllerTest extends WebTestCase
9
{
10
	public function testAccount()
11
	{
12
		$client = static::createClient();
13
		$client->request( 'GET', '/unittest/de/EUR/myaccount' );
14
15
		$this->assertContains( 'aimeos account-history', $client->getResponse()->getContent() );
16
	}
17
18
19
	public function testDownload()
20
	{
21
		$client = static::createClient();
22
		$client->request( 'GET', '/unittest/de/EUR/myaccount/download/0' );
23
24
		$this->assertEquals( 200, $client->getResponse()->getStatusCode() );
25
	}
26
}
27