src/OroCRM/Bundle/MagentoBundle/Tests/Unit/Acl/Voter/CustomerVoterTest.php 1 location
|
@@ 155-163 (lines=9) @@
|
152 |
|
* |
153 |
|
* @return \PHPUnit_Framework_MockObject_MockObject|Customer |
154 |
|
*/ |
155 |
|
public function getObjectIdentity($objectIdentityClass, $className) |
156 |
|
{ |
157 |
|
$objectIdentity = $this->getMock($objectIdentityClass); |
158 |
|
$objectIdentity->expects($this->any()) |
159 |
|
->method('getType') |
160 |
|
->will($this->returnValue($className)); |
161 |
|
|
162 |
|
return $objectIdentity; |
163 |
|
} |
164 |
|
|
165 |
|
/** |
166 |
|
* @param int $originId |
src/OroCRM/Bundle/MagentoBundle/Tests/Unit/Acl/Voter/NewsletterSubscriberVoterTest.php 1 location
|
@@ 197-205 (lines=9) @@
|
194 |
|
* |
195 |
|
* @return \PHPUnit_Framework_MockObject_MockObject|NewsletterSubscriber |
196 |
|
*/ |
197 |
|
public function getObjectIdentity($objectIdentityClass, $className) |
198 |
|
{ |
199 |
|
$objectIdentity = $this->getMock($objectIdentityClass); |
200 |
|
$objectIdentity->expects($this->any()) |
201 |
|
->method('getType') |
202 |
|
->will($this->returnValue($className)); |
203 |
|
|
204 |
|
return $objectIdentity; |
205 |
|
} |
206 |
|
|
207 |
|
/** |
208 |
|
* @param bool $hasCustomer |