BabDev / Pagerfanta

Pagination library for PHP applications with support for several data providers
Other
381 stars 170 forks source link

Fix Doctrine MongoDB ODM Adapter Test #3

Closed mbabker closed 4 years ago

mbabker commented 4 years ago

The Doctrine MongoDB ODM adapter tests are mostly skipped right now because the test was originally written for 1.x of that package and not updated to support 2.x which made the Doctrine\ODM\MongoDB\Query\Query class final (and therefore cannot be mocked).

The tests for this adapter should be updated to validate the adapter's behavior.

(Note, ext/mongodb and the doctrine/mongodb-odm package are installed in the GitHub Actions builds, so the test environment should be usable enough)

davidribeiro commented 4 years ago

Hi @mbabker Is this issue still open? I can take a look at it if you want to

mbabker commented 4 years ago

Yes, it's still open.

davidribeiro commented 4 years ago

I can take a look at this if you want. Just tell me what branch should I use, I see that 2.x is the default one but there are branches as well I think

mbabker commented 4 years ago

The 2.x branch is fine since it's the oldest supported, I'll handle upmerging to 3.x whenever a pull request is merged.

And thanks for taking a look, I just don't work with MongoDB and don't know the Doctrine package well enough to do anything meaningful here.

davidribeiro commented 4 years ago

Done in #19 Unfortunately, there's not a lot we can do since the Doctrine ODM package has this issue: