Completed
Push — develop ( da2907...7e8dc0 )
by Axel
10s
created

BetaTesterTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testEntity() 0 13 1
1
<?php
2
3
namespace Developtech\AgilityBundle\Tests\Entity;
4
5
use Developtech\AgilityBundle\Entity\BetaTester;
6
use Developtech\AgilityBundle\Tests\Mock\User;
7
8
class BetaTesterTest extends \PHPUnit_Framework_TestCase {
9
    public function testEntity() {
10
        $betaTester =
11
            (new BetaTester)
12
            ->setId(1)
13
            ->setAccount(new User())
14
            ->setCreatedAt(new \DateTime())
15
            ->setUpdatedAt(new \DateTime())
16
        ;
17
        $this->assertEquals(1, $betaTester->getId());
18
        $this->assertInstanceOf(User::class, $betaTester->getAccount());
19
        $this->assertInstanceOf('DateTime', $betaTester->getCreatedAt());
20
        $this->assertInstanceOf('DateTime', $betaTester->getUpdatedAt());
21
    }
22
}
23