Mongolid\ActiveRecordTest::testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallWhereFunction PHP 메소드

testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallWhereFunction() 공개 메소드

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