1 | <?php |
||
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 |