Completed
Pull Request — master (#14)
by Pavel
04:24
created

CountingTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 5

Importance

Changes 0
Metric Value
dl 0
loc 13
c 0
b 0
f 0
wmc 1
lcom 1
cbo 5
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testEntityCounting() 0 10 1
1
<?php
2
3
namespace Bankiru\Api\Doctrine\Tests;
4
5
use Bankiru\Api\Doctrine\Test\Entity\TestEntity;
6
7
class CountingTest extends AbstractEntityManagerTest
8
{
9
    public function testEntityCounting()
10
    {
11
        $this->getClient()->push($this->getResponseMock(true, 5));
12
13
        $count = $this->getManager()->getUnitOfWork()->getEntityPersister(TestEntity::class)->count(
14
            ['payload' => 'test']
15
        );
16
17
        self::assertEquals(5, $count);
18
    }
19
}
20