Test Failed
Branch main (0ffd95)
by
unknown
01:57
created

StatusTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 4
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A check_status_of_an_email() 0 13 1
1
<?php
2
3
namespace Tests\Integration\Email;
4
5
use ElasticEmail\ElasticEmail;
6
use Tests\Integration\IntegrationTestCase;
7
8
class StatusTest extends IntegrationTestCase
9
{
10
    /** @test */
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
    }
24
}
25