ModelCriteriaTests::testAsEntity()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
c 0
b 0
f 0
rs 9.6666
cc 1
eloc 6
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the Cubiche/Model component.
5
 *
6
 * Copyright (c) Cubiche
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Cubiche\Domain\Model\Tests\Units\Specification;
13
14
use Cubiche\Domain\Model\Selector\Entity;
15
use Cubiche\Domain\Model\Specification\ModelCriteria;
16
use Cubiche\Domain\Model\Tests\Units\TestCase;
17
18
/**
19
 * ModelCriteriaTests class.
20
 *
21
 * Generated by TestGenerator on 2016-05-03 at 16:01:26.
22
 */
23
class ModelCriteriaTests extends TestCase
24
{
25
    /**
26
     * Test AsEntity method.
27
     */
28
    public function testAsEntity()
29
    {
30
        $this
31
            ->given($criteria = ModelCriteria::asEntity())
32
            ->then()
33
                ->object($criteria)
34
                    ->isInstanceOf(Entity::class)
35
        ;
36
    }
37
}
38