| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 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 |