diff --git a/composer.json b/composer.json index 52b2d0a..5e41a8c 100644 --- a/composer.json +++ b/composer.json @@ -28,16 +28,16 @@ "require": { "php": "^8.0", "bensampo/laravel-enum": "^5.0 || ^6.0", - "illuminate/support": "^9.0 || ^10.0", + "illuminate/support": "^9.0 || ^10.0 || ^11.0", "laravel/nova": "^4.0" }, "require-dev": { "joshgaber/novaunit": "^3.1", "laravel/pint": "^1.2", "mockery/mockery": "^1.3.3", - "nunomaduro/collision": "^6.1 || ^7.0", - "orchestra/testbench": "^7.0 || ^8.0", - "phpunit/phpunit": "^9.3.3", + "nunomaduro/collision": "^6.1 || ^7.0 || ^8.0", + "orchestra/testbench": "^7.0 || ^8.0 || ^9.0", + "phpunit/phpunit": "^10.0", "symfony/var-dumper": "^6.0" }, "autoload": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 2202d1a..a34a972 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,24 +1,24 @@ - - - src - - - - - tests/Fields - tests/Filters - - - - - - - - - + + + tests/Fields + tests/Filters + + + + + + + + + + + + src + + diff --git a/tests/Fields/FieldTest.php b/tests/Fields/FieldTest.php index cb97022..aac2099 100644 --- a/tests/Fields/FieldTest.php +++ b/tests/Fields/FieldTest.php @@ -34,7 +34,8 @@ public function it_starts_with_no_options_and_rules() /** @test */ public function it_allows_an_enum_to_be_attached() { - $this->assertObjectHasAttribute('optionsCallback', $this->field); + $this->assertIsObject($this->field); + $this->assertTrue(property_exists($this->field, 'optionsCallback')); } /** @test */