Mongolid\ActiveRecordTest::testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallAllFunction PHP Method

testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallAllFunction() public method

    public function testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallAllFunction()
    {
        $entity = new class extends ActiveRecord
        {
        };
        $this->assertNull($entity->getCollectionName());
        $entity->all();
    }