jamesfreeman/novaunit
| Install | |
|---|---|
composer require jamesfreeman/novaunit |
|
| Latest Version: | 4.1.0 |
| PHP: | ^8.0 |
| Laravel: | 8 – 11 |
| License: | MIT |
| Last Updated: | Dec 18, 2024 |
| Links: | GitHub · Packagist |
NovaUnit
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 jamesfreeman/novaunit
Requirements
- PHP 8.0 or higher
- Laravel 6.x - 11.x
- Laravel Nova 4.x - 5.x
- PHPUnit 8.5.x - 11.x
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 github@james-freeman.info instead of using the issue tracker.
Created By
- Josh Gaber (Creator)
- James Freeman (Maintainer)
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
Fork of joshgaber/novaunit; Unit testing suite for Laravel Nova, built to extend...
A Laravel Nova field container allowing to depend on other fields values
Laravel Nova tools for managing the Spatie media library.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 4.1.0 | ^8.0 | ^8.83.4| | MIT | |
| 4.0.0 | ^8.0 | ^8.83.4| | MIT |