Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function testModuleNamesAreInTheRequestUrl() |
||
23 | { |
||
24 | $this->loader->setModuleNames(['foo/bar', 'bar/baz']); |
||
25 | |||
26 | $this->loader->expects($this->once()) |
||
27 | ->method('doRequest') |
||
28 | ->with('addons.silverstripe.org/api/ratings?addons=foo/bar,bar/baz'); |
||
29 | |||
30 | $this->loader->getModuleHealthInfo(); |
||
31 | } |
||
33 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.