Tests/CommitTest.php 1 location
|
@@ 17-28 (lines=12) @@
|
| 14 |
|
|
| 15 |
|
$this->getClient('test-reference-client')->push( |
| 16 |
|
$this->getResponseMock(true, 241), |
| 17 |
|
function (RpcRequestInterface $request) { |
| 18 |
|
self::assertEquals('test-reference/create', $request->getMethod()); |
| 19 |
|
self::assertEquals( |
| 20 |
|
[ |
| 21 |
|
'reference-payload' => '', |
| 22 |
|
'owner' => null, |
| 23 |
|
], |
| 24 |
|
$request->getParameters() |
| 25 |
|
); |
| 26 |
|
|
| 27 |
|
return true; |
| 28 |
|
} |
| 29 |
|
); |
| 30 |
|
|
| 31 |
|
$this->getManager()->persist($entity); |
Tests/CountingTest.php 1 location
|
@@ 14-24 (lines=11) @@
|
| 11 |
|
{ |
| 12 |
|
$this->getClient()->push( |
| 13 |
|
$this->getResponseMock(true, 5), |
| 14 |
|
function (RpcRequestInterface $request) { |
| 15 |
|
self::assertEquals('prefixed-entity/count', $request->getMethod()); |
| 16 |
|
self::assertEquals( |
| 17 |
|
[ |
| 18 |
|
'criteria' => ['prefix_payload' => 'test'], |
| 19 |
|
], |
| 20 |
|
$request->getParameters() |
| 21 |
|
); |
| 22 |
|
|
| 23 |
|
return true; |
| 24 |
|
} |
| 25 |
|
); |
| 26 |
|
|
| 27 |
|
$count = $this->getManager()->getUnitOfWork()->getEntityPersister(PrefixedEntity::class)->count( |
Tests/EntityFactoryTest.php 1 location
|
@@ 82-87 (lines=6) @@
|
| 79 |
|
'payload' => 'test-payload', |
| 80 |
|
] |
| 81 |
|
), |
| 82 |
|
function (RpcRequestInterface $request) { |
| 83 |
|
self::assertEquals('composite-key-entity/find', $request->getMethod()); |
| 84 |
|
self::assertEquals(['first_key' => 2, 'second_key' => 'test'], $request->getParameters()); |
| 85 |
|
|
| 86 |
|
return true; |
| 87 |
|
} |
| 88 |
|
); |
| 89 |
|
|
| 90 |
|
/** @var CompositeKeyEntity $entity */ |