quotevelocity/novaunit

Unit testing suite for Laravel Nova, built to extend PHPUnit
92,177 9
Install
composer require quotevelocity/novaunit
Latest Version:6.2
PHP:^8.2|^8.3|^8.4|^8.5
Laravel:11 · 12 · 13
Older releases:8 · 9 · 10
License:MIT
Last Updated:Mar 27, 2026
Links: GitHub  ·  Packagist
Maintainer: lonnylot

NovaUnit

Latest Version on Packagist

Total Downloads

NovaUnit is a unit-testing package for Laravel Nova, built using PHPUnit. NovaUnit provides you with assertions for Nova Actions, Lenses and Resources, so you can create great administration panels with confidence.

NovaUnit is a fork of the brilliant original package by Josh Gaber which has been updated to support the latest versions of Laravel and Nova.

Installation

You can install the package in your Laravel Project via composer:

composer require --dev quotevelocity/novaunit

General Requirements

Nova 4

As there were some breaking changes in Nova 4 to Nova 5, you should select the 4.x version of NovaUnit:

composer require --dev quotevelocity/novaunit:4.*

Nova < 4

For older projects (Laravel < 9, Nova 2 or 3) please see the legacy project: joshgaber/novaunit instead.

Usage

To access the test classes, import and use the base test traits:

class ClearLogsTest extends TestCase {
    use NovaActionTest;
}

Once you've created the mock with the initial test class, you can begin testing different aspect of the component:

$this->novaAction(ClearLogs::class)
    ->assertHasField('since_date');

For a list of available methods, see the full docs site.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email rob at quotevelocity.com instead of using the issue tracker.

Created By

Contributors

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

Related Packages

jamesfreeman/novaunit

Unit testing suite for Laravel Nova, built to extend PHPUnit

27,707 1
ambitionphp/novaunit

Fork of joshgaber/novaunit; Unit testing suite for Laravel Nova, built to extend...

21,637 0
epartment/nova-dependency-container

A Laravel Nova field container allowing to depend on other fields values

4,685,986 378
eminiarts/nova-tabs

Laravel Nova - Tabs.

4,590,384 464
ebess/advanced-nova-media-library

Laravel Nova tools for managing the Spatie media library.

3,829,438 616

Version History

Version Released PHP Laravel License
6.2 ^8.2|^8.3|^8.4|^8.5 ^11.0|^12.0|^13.0 MIT
6.1 ^8.2|^8.3|^8.4|^8.5 ^11.0|^12.0|^13.0 MIT
6.0 ^8.2|^8.3|^8.4|^8.5 ^11.0|^12.0 MIT
5.1.0 ^8.1|^8.2|^8.3|^8.4 ^10.34|^11.0|^12.0 MIT
5.0.0 ^8.1|^8.2|^8.3|^8.4 ^10.34|^11.0 MIT