Completed
Push — master ( 77a4e5...4f465e )
by Dominik
02:10 queued 32s
created

MailgunEventTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCannotSetAsUnknown() 0 10 1
1
<?php
2
3
namespace Azine\MailgunWebhooksBundle\Tests\Entity;
4
5
use Azine\MailgunWebhooksBundle\Entity\MailgunEvent;
6
7
class MailgunEventTest extends \PHPUnit_Framework_TestCase
8
{
9
    /**
10
     * Do not allow country or region to be set to 'Unknown'
11
     */
12
    public function testCannotSetAsUnknown()
13
    {
14
        $event = new MailgunEvent();
15
16
        $event->setCountry('Unknown');
17
        $this->assertNull($event->getCountry());
18
19
        $event->setRegion('Unknown');
20
        $this->assertNull($event->getRegion());
21
    }
22
}
23