aimeos /
aimeos-flow
| 1 | <?php |
||
| 2 | |||
| 3 | |||
| 4 | namespace Aimeos\Shop\Tests\Unit\Controller; |
||
| 5 | |||
| 6 | |||
| 7 | class LocaleControllerTest extends \Neos\Flow\Tests\UnitTestCase |
||
|
0 ignored issues
–
show
|
|||
| 8 | { |
||
| 9 | private $object; |
||
| 10 | private $response; |
||
| 11 | private $view; |
||
| 12 | |||
| 13 | |||
| 14 | public function setUp() |
||
| 15 | { |
||
| 16 | $this->object = $this->getMockBuilder( '\Aimeos\Shop\Controller\LocaleController' ) |
||
| 17 | ->setMethods( array( 'getOutput' ) ) |
||
| 18 | ->disableOriginalConstructor() |
||
| 19 | ->getMock(); |
||
| 20 | |||
| 21 | $this->view = $this->getMockBuilder( '\Neos\Flow\Mvc\View\JsonView' ) |
||
| 22 | ->disableOriginalConstructor() |
||
| 23 | ->getMock(); |
||
| 24 | |||
| 25 | $this->inject( $this->object, 'view', $this->view ); |
||
| 26 | $this->inject( $this->object, 'response', $this->response ); |
||
| 27 | } |
||
| 28 | |||
| 29 | |||
| 30 | /** |
||
| 31 | * @test |
||
| 32 | */ |
||
| 33 | public function selectComponentAction() |
||
| 34 | { |
||
| 35 | $this->object->expects( $this->once() )->method( 'getOutput' ) |
||
| 36 | ->will( $this->returnValue( 'body' ) ); |
||
| 37 | |||
| 38 | $this->view->expects( $this->once() )->method( 'assign' ) |
||
| 39 | ->with( $this->equalTo( 'output' ), $this->equalTo( 'body' ) ); |
||
| 40 | |||
| 41 | $this->object->selectComponentAction(); |
||
| 42 | } |
||
| 43 | } |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths