for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\Newsletter\Test;
use PHPUnit\Framework\TestCase;
use Spatie\Newsletter\NewsletterList;
class NewsletterListTest extends TestCase
{
protected $newsletterList;
public function setUp(): void
parent::setUp();
$this->newsletterList = new NewsletterList('subscriber', ['id' => 'abc123']);
}
/** @test */
public function it_can_determine_the_name_of_the_list()
$this->assertSame('subscriber', $this->newsletterList->getName());
public function it_can_determine_the_id_of_the_list()
$this->assertSame('abc123', $this->newsletterList->getId());