Mongolid\ActiveRecordTest::testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallAllFunction PHP 메소드

testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallAllFunction() 공개 메소드

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