/** */ 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()); }
/** * @return EntityInterface */ public function create() { return $this->repository->create(); }