| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function testContactUs() |
||
| 20 | { |
||
| 21 | $data = [ |
||
| 22 | 'email' => '[email protected]', |
||
| 23 | 'message' => 'I just want to tell you this App is awesome.', |
||
| 24 | 'name' => 'Cool User', |
||
| 25 | 'subject' => 'Thank you RewardFox', |
||
| 26 | ]; |
||
| 27 | |||
| 28 | // mock sending emails |
||
| 29 | Mail::shouldReceive('queue')->once()->andReturn('true'); |
||
|
|
|||
| 30 | |||
| 31 | Config::set('mail.to.address', '[email protected]'); |
||
| 32 | Config::set('mail.to.name', 'Mahmoud'); |
||
| 33 | |||
| 34 | $response = $this->apiCall($this->endpoint, 'post', $data, false); |
||
| 35 | |||
| 36 | $this->assertEquals($response->getStatusCode(), '202'); |
||
| 37 | |||
| 38 | $this->assertResponseContainKeyValue(['message' => 'Message sent Successfully.'], $response); |
||
| 39 | } |
||
| 40 | |||
| 42 |
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.