mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-25 22:36:06 +03:00
37 lines
879 B
PHP
37 lines
879 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\MailingList;
|
|
|
|
use Mailgun\Model\MailingList\ValidationStatusSummaryRisk;
|
|
use Mailgun\Tests\Model\BaseModelTest;
|
|
|
|
class ValidationStatusSummaryRiskTest extends BaseModelTest
|
|
{
|
|
public function testCreate()
|
|
{
|
|
$json =
|
|
<<<'JSON'
|
|
{
|
|
"high": 17763,
|
|
"low": 142547,
|
|
"medium": 41652,
|
|
"unknown": 5614
|
|
}
|
|
JSON;
|
|
$model = ValidationStatusSummaryRisk::create(json_decode($json, true));
|
|
$this->assertEquals(17763, $model->getHigh());
|
|
$this->assertEquals(142547, $model->getLow());
|
|
$this->assertEquals(41652, $model->getMedium());
|
|
$this->assertEquals(5614, $model->getUnknown());
|
|
}
|
|
}
|