定制 quotevelocity/novaunit 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

quotevelocity/novaunit

最新稳定版本:5.1.0

Composer 安装命令:

composer require quotevelocity/novaunit

包简介

Unit testing suite for Laravel Nova, built to extend PHPUnit

README 文档

README

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.

Maintained By

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.

统计信息

  • 总下载量: 56.51k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 3
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固