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

CountingTest::testEntityCounting()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
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