Esempio n. 1
0
 /**
  */
 public function testCreate()
 {
     /** @var EntityInterface|ObjectProphecy $entity */
     $entity = $this->prophesize('AppBundle\\Entity\\EntityInterface');
     $this->repository->create()->willReturn($entity->reveal())->shouldBeCalledTimes(1);
     $this->assertSame($entity->reveal(), $this->manager->create());
 }
Esempio n. 2
0
 /**
  * @return EntityInterface
  */
 public function create()
 {
     return $this->repository->create();
 }