ambitionphp/novaunit

Fork of joshgaber/novaunit; Unit testing suite for Laravel Nova, built to extend PHPUnit
21,637
Install
composer require ambitionphp/novaunit
Latest Version:3.1.1
PHP:^8.0
License:MIT
Last Updated:Oct 23, 2023
Links: GitHub  ·  Packagist
Maintainer: ambitionphp

NovaUnit

Latest Version on Packagist Code Coverage Scrutinizer Code Quality 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.

Installation

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

composer require --dev joshgaber/novaunit

Requirements

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 joshgaber@gmail.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,703 1
quotevelocity/novaunit

Unit testing suite for Laravel Nova, built to extend PHPUnit

90,969 9
vyuldashev/nova-permission

A Laravel Nova tool for Spatie's Permission library.

2,646,713 429
spatie/nova-tags-field

A tags field for Nova apps

2,305,323 301
spatie/nova-tail-tool

A Laravel Nova tool to display the application log.

129,871 119

Version History

Version Released PHP Laravel License
3.1.1 ^8.0 ^8.83.4|^9.3.1|^10.0 MIT