Completed
Push — master ( 76ac09...8c1d79 )
by Aimeos
04:15
created

LocaleControllerTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 0
cbo 1
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testSelectComponent() 0 11 1
1
<?php
2
3
namespace Aimeos\ShopBundle\Tests\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
6
7
8
class LocaleControllerTest extends WebTestCase
9
{
10
	public function testSelectComponent()
11
	{
12
		$mock = $this->getMockBuilder( 'Aimeos\ShopBundle\Controller\LocaleController' )
13
			->setMethods( array( 'getOutput' ) )
14
			->disableOriginalConstructor()
15
			->getMock();
16
17
		$mock->expects( $this->once() )->method( 'getOutput' )->will( $this->returnValue( 'test' ) );
18
19
		$this->assertEquals( 'test', $mock->selectComponentAction() );
20
	}
21
}
22