From 491da28467b1285c7a15727f3bd56cb54973907e Mon Sep 17 00:00:00 2001 From: Joshua Gaber Date: Fri, 7 Oct 2022 22:29:52 -0400 Subject: [PATCH] Prepare for 3.0.2 release --- CHANGELOG.md | 8 ++++++++ README.md | 2 ++ composer.json | 2 +- docs/fields.md | 5 ++++- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 386a620..d6b04a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes to NovaUnit will be documented in this file. +## 3.0.2 + +- Allow `FieldElement` as a valid field instance + +## 3.0.1 + +- Use built-in `NovaRequest` for mocking components + ## 3.0 - Compatibility with Laravel Nova 4 diff --git a/README.md b/README.md index 1771dec..7dcfd45 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,8 @@ If you discover any security related issues, please email joshgaber@gmail.com in * [Joshua Lauwrich Nandy](https://github.com/joshua060198) * [nicko170](https://github.com/nicko170) +* [Henry Ávila](https://github.com/henryavila) +* [Peter Elmered](https://github.com/pelmered) ## License diff --git a/composer.json b/composer.json index 90d92d5..4fdce5f 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "joshgaber/novaunit", "description": "Unit testing suite for Laravel Nova, built to extend PHPUnit", - "version": "3.0.1", + "version": "3.0.2", "keywords": [ "laravel", "nova", diff --git a/docs/fields.md b/docs/fields.md index e2fdc2a..e900a0a 100644 --- a/docs/fields.md +++ b/docs/fields.md @@ -41,7 +41,10 @@ Asserts that the `fields()` method returns an empty array. $component->assertHasValidFields(); ``` -Asserts that all fields returned by the `fields()` method are valid Nova Fields. +Asserts that all fields returned by the `fields()` method are valid. Examples of valid fields include: +* `Field` instances +* `FieldElement` instances +* `Panel` instances (including any nested objects) ## Testing Fields Individually