8 use PHPUnit\Framework\TestCase;
16 $objectManagerMock = $this->createMock(ObjectManagerInterface::class);
22 $objectManagerMock->expects($this->once())
25 $operationPool->getOperation(
'entity_type',
'read');
30 $customReadOperation =
'CustomReadOperation';
31 $objectManagerMock = $this->createMock(ObjectManagerInterface::class);
36 'read' => $customReadOperation,
37 'new' =>
'CustomNewOperation',
42 $objectManagerMock->expects($this->once())
44 ->with($customReadOperation);
45 $operationPool->getOperation(
'entity_type',
'read');
testGetOperationUsesDefaultValueForEntityThatDoesNotProvideCustomMapping()
testGetOperationUsesOverriddenDefaultValueForEntityThatDoesNotProvideCustomMapping()