NewsletterListTest::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Spatie\Newsletter\Test;
4
5
use PHPUnit\Framework\TestCase;
6
use Spatie\Newsletter\NewsletterList;
7
8
class NewsletterListTest extends TestCase
9
{
10
    protected $newsletterList;
11
12
    public function setUp(): void
13
    {
14
        parent::setUp();
15
16
        $this->newsletterList = new NewsletterList('subscriber', ['id' => 'abc123']);
17
    }
18
19
    /** @test */
20
    public function it_can_determine_the_name_of_the_list()
21
    {
22
        $this->assertSame('subscriber', $this->newsletterList->getName());
23
    }
24
25
    /** @test */
26
    public function it_can_determine_the_id_of_the_list()
27
    {
28
        $this->assertSame('abc123', $this->newsletterList->getId());
29
    }
30
}
31