1 | <?php |
||
2 | |||
3 | namespace Aimeos\Shop\Tests\Functional\Controller; |
||
4 | |||
5 | use Neos\Flow\Annotations as Flow; |
||
6 | |||
7 | |||
8 | class JqadmControllerTest extends \Neos\Flow\Tests\FunctionalTestCase |
||
0 ignored issues
–
show
|
|||
9 | { |
||
10 | public function testFileActionCss() |
||
11 | { |
||
12 | $response = $this->browser->request( 'http://localhost/unittest/jqadm/file/css', 'GET' ); |
||
13 | |||
14 | $this->assertEquals( 200, $response->getStatusCode() ); |
||
15 | $this->assertContains( '.aimeos', $response->getContent() ); |
||
16 | } |
||
17 | |||
18 | |||
19 | public function testFileActionJs() |
||
20 | { |
||
21 | $response = $this->browser->request( 'http://localhost/unittest/jqadm/file/js', 'GET' ); |
||
22 | |||
23 | $this->assertEquals( 200, $response->getStatusCode() ); |
||
24 | $this->assertContains( 'Aimeos = {', $response->getContent() ); |
||
25 | } |
||
26 | |||
27 | |||
28 | /* |
||
29 | * @Flow\Session(autoStart = TRUE) |
||
30 | */ |
||
31 | public function testCopyAction() |
||
32 | { |
||
33 | $response = $this->browser->request( 'http://localhost/unittest/jqadm/copy/product?id=0', 'GET' ); |
||
34 | |||
35 | $this->assertEquals( 200, $response->getStatusCode() ); |
||
36 | $this->assertContains( 'item-product', $response->getContent() ); |
||
37 | } |
||
38 | |||
39 | |||
40 | /* |
||
41 | * @Flow\Session(autoStart = TRUE) |
||
42 | */ |
||
43 | public function testCreateAction() |
||
44 | { |
||
45 | $response = $this->browser->request( 'http://localhost/unittest/jqadm/create/product', 'GET' ); |
||
46 | |||
47 | $this->assertEquals( 200, $response->getStatusCode() ); |
||
48 | $this->assertContains( 'item-product', $response->getContent() ); |
||
49 | } |
||
50 | |||
51 | |||
52 | /* |
||
53 | * @Flow\Session(autoStart = TRUE) |
||
54 | */ |
||
55 | public function testDeleteAction() |
||
56 | { |
||
57 | $response = $this->browser->request( 'http://localhost/unittest/jqadm/delete/product?id=0', 'GET' ); |
||
58 | |||
59 | $this->assertEquals( 302, $response->getStatusCode() ); |
||
60 | } |
||
61 | |||
62 | |||
63 | /* |
||
64 | * @Flow\Session(autoStart = TRUE) |
||
65 | */ |
||
66 | public function testExportAction() |
||
67 | { |
||
68 | $response = $this->browser->request( 'http://localhost/unittest/jqadm/export/order', 'GET' ); |
||
69 | |||
70 | $this->assertEquals( 200, $response->getStatusCode() ); |
||
71 | $this->assertContains( 'list-items', $response->getContent() ); |
||
72 | } |
||
73 | |||
74 | |||
75 | /* |
||
76 | * @Flow\Session(autoStart = TRUE) |
||
77 | */ |
||
78 | public function testGetAction() |
||
79 | { |
||
80 | $response = $this->browser->request( 'http://localhost/unittest/jqadm/get/product?id=0', 'GET' ); |
||
81 | |||
82 | $this->assertEquals( 200, $response->getStatusCode() ); |
||
83 | $this->assertContains( 'item-product', $response->getContent() ); |
||
84 | } |
||
85 | |||
86 | |||
87 | /* |
||
88 | * @Flow\Session(autoStart = TRUE) |
||
89 | */ |
||
90 | public function testSaveAction() |
||
91 | { |
||
92 | $response = $this->browser->request( 'http://localhost/unittest/jqadm/save/product', 'POST' ); |
||
93 | |||
94 | $this->assertEquals( 200, $response->getStatusCode() ); |
||
95 | $this->assertContains( 'item-product', $response->getContent() ); |
||
96 | } |
||
97 | |||
98 | |||
99 | /* |
||
100 | * @Flow\Session(autoStart = TRUE) |
||
101 | */ |
||
102 | public function testSearchAction() |
||
103 | { |
||
104 | $response = $this->browser->request( 'http://localhost/unittest/jqadm/search/product', 'GET' ); |
||
105 | |||
106 | $this->assertEquals( 200, $response->getStatusCode() ); |
||
107 | $this->assertContains( 'list-items', $response->getContent() ); |
||
108 | } |
||
109 | |||
110 | |||
111 | public function testSearchActionSite() |
||
112 | { |
||
113 | $response = $this->browser->request( 'http://localhost/invalid/jqadm/search/product', 'GET' ); |
||
114 | |||
115 | $this->assertEquals( 500, $response->getStatusCode() ); |
||
116 | } |
||
117 | } |
||
118 |
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