mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-23 13:06:02 +03:00
29 lines
720 B
PHP
29 lines
720 B
PHP
|
<?php
|
||
|
|
||
|
namespace Mailgun\Tests\Model\Suppression\Unsubscribe;
|
||
|
|
||
|
use Mailgun\Model\Suppression\Unsubscribe\Unsubscribe;
|
||
|
use PHPUnit_Framework_TestCase;
|
||
|
|
||
|
class UnsubscribeTest extends PHPUnit_Framework_TestCase
|
||
|
{
|
||
|
/**
|
||
|
* @test
|
||
|
*/
|
||
|
public function it_gets_empty_list_of_tags_by_default()
|
||
|
{
|
||
|
$unsubscribe = Unsubscribe::create(['address' => 'dummy@mailgun.net']);
|
||
|
$this->assertEquals([], $unsubscribe->getTags());
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @test
|
||
|
*/
|
||
|
public function it_gets_tags()
|
||
|
{
|
||
|
$tags = ['tag1', 'tag2'];
|
||
|
$unsubscribe = Unsubscribe::create(['address' => 'dummy@mailgun.net', 'tags' => $tags]);
|
||
|
$this->assertEquals($tags, $unsubscribe->getTags());
|
||
|
}
|
||
|
}
|