Completed
Push — develop ( 7f6ad2...eb155e )
by Baptiste
02:38
created

MetadataBuilderFactoryTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 15
ccs 0
cts 11
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testMake() 0 12 1
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