| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function testGetRatingsForMultipleModules() |
||
| 11 | { |
||
| 12 | $response = $this->get('api/ratings?addons=foo/bar,far/baz'); |
||
| 13 | |||
| 14 | $this->assertJson($response->getBody()); |
||
|
|
|||
| 15 | |||
| 16 | $result = json_decode($response->getBody()); |
||
| 17 | $this->assertTrue($result->success); |
||
| 18 | $this->assertNotEmpty($result->ratings); |
||
| 19 | $this->assertEquals(53, $result->ratings->{'foo/bar'}); |
||
| 20 | $this->assertEquals(83, $result->ratings->{'far/baz'}); |
||
| 21 | } |
||
| 22 | |||
| 34 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.