Completed
Push — master ( 0277e9...db813e )
by Al3x
03:09
created

BaseTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCreate() 0 12 1
1
<?php
2
declare(strict_types=1);
3
4
namespace InvoiceNinjaModuleTest\Model;
5
6
use InvoiceNinjaModule\Model\Base;
7
use InvoiceNinjaModule\Model\Interfaces\BaseInterface;
8
use PHPUnit\Framework\TestCase;
9
10
class BaseTest extends TestCase
11
{
12
    public function testCreate() :void
13
    {
14
        $base = new Base();
15
        self::assertInstanceOf(BaseInterface::class, $base);
16
17
        self::assertNull($base->getUpdatedAt());
18
        self::assertNull($base->getArchivedAt());
19
        self::assertFalse($base->isDeleted());
20
        self::assertFalse($base->isOwner());
21
        self::assertEquals(0, $base->getId());
22
        self::assertEmpty($base->getAccountKey());
23
    }
24
}
25