mailgun-php/tests/Api/SuppressionTest.php

53 lines
1.1 KiB
PHP
Raw Normal View History

2018-08-05 12:43:31 +03:00
<?php
declare(strict_types=1);
2018-08-05 12:43:31 +03:00
/*
* 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\Api;
use Mailgun\Api\Suppression;
/**
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
*/
class SuppressionTest extends TestCase
{
public function testBounces()
{
$api = $this->getApiInstance();
$this->assertInstanceOf(Suppression\Bounce::class, $api->bounces());
}
public function testComplaints()
{
$api = $this->getApiInstance();
$this->assertInstanceOf(Suppression\Complaint::class, $api->complaints());
}
public function testUnsubscribes()
{
$api = $this->getApiInstance();
$this->assertInstanceOf(Suppression\Unsubscribe::class, $api->unsubscribes());
}
2020-10-15 22:02:50 +03:00
public function testWhitelists()
{
$api = $this->getApiInstance();
$this->assertInstanceOf(Suppression\Whitelist::class, $api->whitelists());
}
2018-08-05 12:43:31 +03:00
/**
* {@inheritdoc}
*/
protected function getApiClass()
{
return Suppression::class;
}
}