Mongolid\ActiveRecordTest::testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallFirstFunction PHP 메소드

testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallFirstFunction() 공개 메소드

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