Example #1
0
 public function testCloneAddresses()
 {
     /** @var ArrayCollection $address */
     $addresses = new ArrayCollection(array($this->getMockForAbstractClass('Oro\\Bundle\\AddressBundle\\Entity\\AbstractAddress'), $this->getMockForAbstractClass('Oro\\Bundle\\AddressBundle\\Entity\\AbstractAddress')));
     $this->entity->resetAddresses($addresses);
     $newEntity = clone $this->entity;
     $this->assertEquals($this->entity, $newEntity);
 }
Example #2
0
 /**
  * Constructor
  *
  * The real implementation of this method is auto generated.
  *
  * IMPORTANT: If the derived class has own constructor it must call parent constructor.
  */
 public function __construct()
 {
     parent::__construct();
 }