joshgaber / NovaUnit

Unit testing suite for Laravel Nova, built to extend PHPUnit
https://joshgaber.github.io/NovaUnit
MIT License
67 stars 23 forks source link

Laravel 11.x Upgrade, PHPUnit 11.x, CI Matrix and PHPUnit Upgrades #64

Open JamesFreeman opened 7 months ago

JamesFreeman commented 7 months ago

Hi @joshgaber,

Here's a PR for the Laravel 11.x migration, I've spent some time upgrading the CI.yml to now test against the different PHP versions and Laravel versions.

It's worth noting the tests were failing against main, so I've pulled in #59's PR (👏 - great work @kichetof).

I've also migrated the phpunit.xml to the new format and also allow for PHPUnit 11.

I had a couple of issues, with compatibility with Nova 4, so I've migrated the signature of withOrdering in src/Lenses/MockLensRequest.php. I've also disabled testItSucceedsOnPushResponse due to the fact it was deprecated by Nova now anyway because of these changes it might be worth doing this as a Major jump because of the breaking changes.

New Project secret required

As per the new Nova composer format, you'll need to add a new project secret for ${{ secrets.NOVA_4_EMAIL }}

Let me know if you have any questions or need any more changes.

kichetof commented 6 months ago

Hi @JamesFreeman ! This PR is perfect! Thanks! With it, at least 2 issues will be behind us and L11 compatible! Hopefully @joshgaber could take the time to merge it!

nw-mjl commented 6 months ago

@JamesFreeman Thanks for doing this. For now I have forked the project, but would prefer to just have this one updated.

JamesFreeman commented 6 months ago

@JamesFreeman Thanks for doing this. For now I have forked the project, but would prefer to just have this one updated.

No problems, I'm in the same boat. I've published this PR if you want to point to my branch.

https://packagist.org/packages/jamesfreeman/novaunit

JamesFreeman commented 5 months ago

Any updates on this @joshgaber

VGirol commented 3 months ago

Any updates on this @joshgaber ?

karahan commented 3 months ago

@joshgaber any update?

robertmarney commented 1 month ago

Hey everyone,

As a head-up this package was marked as abandoned on packagist recently and has been replaced with a new fork (with @joshgaber's blessing)

You can find it here: Packagist and GitHub

The latest release provides support for Laravel 11 and latest versions of Nova.