public cloneObject ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void | ||
$joinPoint | Neos\Flow\Aop\JoinPointInterface | |
리턴 | void |
public function cloneObject(JoinPointInterface $joinPoint)
{
$joinPoint->getProxy()->Flow_Persistence_clone = true;
}
/** * @test * @return void */ public function cloneObjectMarksTheObjectAsCloned() { $object = new \stdClass(); $this->mockJoinPoint->expects($this->any())->method('getProxy')->will($this->returnValue($object)); $this->persistenceMagicAspect->cloneObject($this->mockJoinPoint); $this->assertTrue($object->Flow_Persistence_clone); }