mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-30 00:46:04 +03:00
12ed8aae43
* Updating workflows and add psalm * Normalize composer * Fixed CS
38 lines
894 B
PHP
38 lines
894 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/*
|
|
* Copyright (C) 2013 Mailgun
|
|
*
|
|
* This software may be modified and distributed under the terms
|
|
* of the MIT license. See the LICENSE file for details.
|
|
*/
|
|
|
|
namespace Mailgun\Tests\Model\Suppression\Unsubscribe;
|
|
|
|
use Mailgun\Model\Suppression\Unsubscribe\Unsubscribe;
|
|
use Mailgun\Tests\Model\BaseModelTest;
|
|
|
|
class UnsubscribeTest extends BaseModelTest
|
|
{
|
|
/**
|
|
* @test
|
|
*/
|
|
public function itGetsEmptyListOfTagsByDefault()
|
|
{
|
|
$unsubscribe = Unsubscribe::create(['address' => 'dummy@mailgun.net']);
|
|
$this->assertEquals([], $unsubscribe->getTags());
|
|
}
|
|
|
|
/**
|
|
* @test
|
|
*/
|
|
public function itGetsTags()
|
|
{
|
|
$tags = ['tag1', 'tag2'];
|
|
$unsubscribe = Unsubscribe::create(['address' => 'dummy@mailgun.net', 'tags' => $tags]);
|
|
$this->assertEquals($tags, $unsubscribe->getTags());
|
|
}
|
|
}
|