EmailTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 7
c 2
b 0
f 0
dl 0
loc 20
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A has_access_to_email_status_check() 0 7 1
A has_access_to_send_client() 0 7 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->mockAPIRequest();
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->mockAPIRequest();
26
27
        $email = new Email($client);
28
29
        $this->assertInstanceOf(Status::class, $email->status());
30
    }
31
}
32