27 $this->userContext = $this->getMockBuilder(\
Magento\Authorization\Model\UserContextInterface::class)
28 ->getMockForAbstractClass();
30 \
Magento\Webapi\Controller\Rest\ParamOverriderCustomerId::class,
32 'userContext' => $this->userContext
39 $retValue =
'retValue';
41 $this->userContext->expects($this->once())
42 ->method(
'getUserType')
44 $this->userContext->expects($this->once())
46 ->will($this->returnValue($retValue));
48 $this->assertSame($retValue, $this->model->getOverriddenValue());
53 $this->userContext->expects($this->once())
54 ->method(
'getUserType')
57 $this->assertNull($this->model->getOverriddenValue());
testGetOverriddenValueIsNotCustomer()
testGetOverriddenValueIsCustomer()