Mongolid\ActiveRecordTest::testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallAllFunction PHP Méthode

testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallAllFunction() public méthode

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