joshgaber/novaunit
最新稳定版本:3.1.0
Composer 安装命令:
composer require joshgaber/novaunit
包简介
Unit testing suite for Laravel Nova, built to extend PHPUnit
关键字:
README 文档
README
Warning
Thank you to everyone who has supported, downloaded and contributed to NovaUnit over the years. This repository is no longer maintained, and has been moved to https://github.com/qvelocity/novaunit. Big shout out to @robertmarney and the team at @qvelocity for continuing this project!
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 joshgaber/novaunit
Requirements
- PHP 7.3 or higher
- Laravel 6.x - 10.x
- Laravel Nova 2.x - 4.x
- PHPUnit 8.5.x - 10.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 joshgaber@gmail.com instead of using the issue tracker.
Created By
- Josh Gaber (Creator & 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.
joshgaber/novaunit 适用场景与选型建议
joshgaber/novaunit 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 372.34k 次下载、GitHub Stars 达 64, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「nova」 「laravel」 「joshgaber」 「novaunit」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 joshgaber/novaunit 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 joshgaber/novaunit 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 joshgaber/novaunit 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A Laravel Nova card that shows you your system information.
Unit testing suite for Laravel Nova, built to extend PHPUnit
A Laravel Nova card.
Unit testing suite for Laravel Nova, built to extend PHPUnit
Fork of joshgaber/novaunit; Unit testing suite for Laravel Nova, built to extend PHPUnit
A Laravel Nova package for publishable fields
统计信息
- 总下载量: 372.34k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 64
- 点击次数: 29
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 未知