FactoryGirl\Tests\Provider\Doctrine\Fixtures\SingletonTest::afterGettingAnEntityAsASingletonGettingTheEntityAgainReturnsTheSameObject PHP Method

afterGettingAnEntityAsASingletonGettingTheEntityAgainReturnsTheSameObject() public method

    public function afterGettingAnEntityAsASingletonGettingTheEntityAgainReturnsTheSameObject()
    {
        $this->factory->defineEntity('SpaceShip');
        $ss = $this->factory->getAsSingleton('SpaceShip');
        $this->assertSame($ss, $this->factory->get('SpaceShip'));
        $this->assertSame($ss, $this->factory->get('SpaceShip'));
    }