Completed
Push — develop ( eb155e...f5bb1e )
by Baptiste
01:53
created

MetadataBuilderFactoryTest::testMake()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 0
cts 11
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 0
crap 2
1
<?php
2
declare(strict_types = 1);
3
4
namespace Tests\Innmind\Neo4jBundle\Factory;
5
6
use Innmind\Neo4jBundle\Factory\MetadataBuilderFactory;
7
use Innmind\Neo4j\ONM\{
8
    Types,
9
    Metadata\Aggregate,
10
    MetadataFactory\AggregateFactory,
11
    Configuration,
12
    MetadataBuilder
13
};
14
15
class MetadataBuilderFactoryTest extends \PHPUnit_Framework_TestCase
16
{
17
    public function testMake()
18
    {
19
        $mb = MetadataBuilderFactory::make(
20
            new Types,
21
            [
22
                Aggregate::class => new AggregateFactory(new Types),
23
            ],
24
            new Configuration
25
        );
26
27
        $this->assertInstanceOf(MetadataBuilder::class, $mb);
28
    }
29
}
30