| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function check_status_of_an_email() |
||
| 12 | { |
||
| 13 | $this->loadEnv(); |
||
| 14 | |||
| 15 | $elasticEmail = new ElasticEmail($_ENV['ELASTIC_EMAIL_API_KEY']); |
||
| 16 | $response = $elasticEmail->email()->status() |
||
| 17 | ->request('l7gX4coU6sCb7YWTLC9H-w2'); |
||
| 18 | |||
| 19 | $this->assertTrue($response->wasSuccessful()); |
||
| 20 | $this->assertEquals(200, $response->getStatusCode()); |
||
| 21 | |||
| 22 | d($response->getBody()); |
||
| 23 | } |
||
| 25 |