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

EmailTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 22
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A has_access_to_send_client() 0 8 1
A has_access_to_email_status_check() 0 8 1
1
<?php
2
3
namespace Tests\Unit\Email;
4
5
use ElasticEmail\Email\Email;
6
use ElasticEmail\Email\Send;
7
use ElasticEmail\Email\Status;
8
use Tests\Unit\UnitTestCase;
9
10
class EmailTest extends UnitTestCase
11
{
12
    /** @test */
13
    public function has_access_to_send_client()
14
    {
15
        $client = $this->mockElasticEmailAPIRequest();
16
17
        $email = new Email($client);
18
19
        $this->assertInstanceOf(Send::class, $email->send());
20
    }
21
22
    /** @test */
23
    public function has_access_to_email_status_check()
24
    {
25
        $client = $this->mockElasticEmailAPIRequest();
26
27
        $email = new Email($client);
28
29
        $this->assertInstanceOf(Status::class, $email->status());
30
    }
31
}
32