Skip to content

Commit 8f60fb6

Browse files
HP-2831: Fix failing phpunit-rcp tests on HiApi CI due to incorrect RedashMigrationGenerator constructor dependency (#112)
1 parent 7cccf4b commit 8f60fb6

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

src/plan/PlanRepositoryInterface.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@
1010

1111
namespace hiqdev\php\billing\plan;
1212

13+
use hiqdev\DataMapper\Repository\RepositoryInterface;
1314
use hiqdev\php\billing\action\ActionInterface;
1415
use hiqdev\php\billing\Exception\EntityNotFoundException;
1516
use hiqdev\php\billing\order\OrderInterface;
1617

1718
/**
1819
* @author Andrii Vasyliev <[email protected]>
1920
*/
20-
interface PlanRepositoryInterface
21+
interface PlanRepositoryInterface extends RepositoryInterface
2122
{
2223
/**
2324
* Finds suitable plan for given action: customer + type + target.

tests/support/plan/SimplePlanRepository.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
namespace hiqdev\php\billing\tests\support\plan;
1212

13+
use hiqdev\DataMapper\Query\Specification;
1314
use hiqdev\php\billing\action\ActionInterface;
1415
use hiqdev\php\billing\order\OrderInterface;
1516
use hiqdev\php\billing\plan\PlanInterface;
@@ -51,4 +52,24 @@ public function getById(int $id): PlanInterface
5152
{
5253
throw new \Exception('not implemented');
5354
}
55+
56+
public function count(Specification $specification)
57+
{
58+
throw new \Exception('not implemented');
59+
}
60+
61+
public function findAll(Specification $specification)
62+
{
63+
throw new \Exception('not implemented');
64+
}
65+
66+
public function findOne(Specification $specification)
67+
{
68+
throw new \Exception('not implemented');
69+
}
70+
71+
public function findOneOrFail(Specification $specification)
72+
{
73+
throw new \Exception('not implemented');
74+
}
5475
}

0 commit comments

Comments
 (0)