Mongolid\ActiveRecordTest::testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallWhereFunction PHP Method

testShouldRaiseExceptionWhenHasNoCollectionAndTryToCallWhereFunction() public method

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