Completed
Push — master ( a987b1...959bb2 )
by Andrii
02:27
created

PlanRepositoryTest::getRepo()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace hiqdev\billing\hiapi\tests\unit\plan;
4
5
use hiqdev\php\billing\plan\Plan;
6
use hiqdev\billing\hiapi\plan\PlanRepository;
7
use hiqdev\yii\DataMapper\tests\unit\BaseRepositoryTest;
8
9
class PlanRepositoryTest extends BaseRepositoryTest
10
{
11
    public function testDI()
12
    {
13
        $this->assertInstanceOf(PlanRepository::class, $this->getRepo());
14
    }
15
16
    protected function getRepo(): PlanRepository
17
    {
18
        return $this->getRepository(Plan::class);
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->getReposit...lling\plan\Plan::class) returns the type hiqdev\yii\DataMapper\repositories\BaseRepository which includes types incompatible with the type-hinted return hiqdev\billing\hiapi\plan\PlanRepository.
Loading history...
19
    }
20
}
21