From c24f88216631d1e6e1297fe470216563985639fd Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Fri, 21 Jun 2024 20:44:58 +0100 Subject: [PATCH] A few more --- .../Feature/GraphQL/Fieldtypes/GridFieldtypeTest.php | 3 +-- .../GraphQL/Fieldtypes/ReplicatorFieldtypeTest.php | 3 +-- tests/Fields/FieldTransformerTest.php | 3 +-- tests/Fields/FieldsTest.php | 12 +++--------- tests/Fieldtypes/GridTest.php | 4 +--- tests/Modifiers/BackspaceTest.php | 3 +-- 6 files changed, 8 insertions(+), 20 deletions(-) diff --git a/tests/Feature/GraphQL/Fieldtypes/GridFieldtypeTest.php b/tests/Feature/GraphQL/Fieldtypes/GridFieldtypeTest.php index 1d8c510444..0057561255 100644 --- a/tests/Feature/GraphQL/Fieldtypes/GridFieldtypeTest.php +++ b/tests/Feature/GraphQL/Fieldtypes/GridFieldtypeTest.php @@ -93,9 +93,8 @@ public function it_outputs_grid_fields() ]]); } + #[Test] /** - * @test - * * @see https://github.com/statamic/cms/issues/3200 **/ public function it_outputs_nested_grid_fields() diff --git a/tests/Feature/GraphQL/Fieldtypes/ReplicatorFieldtypeTest.php b/tests/Feature/GraphQL/Fieldtypes/ReplicatorFieldtypeTest.php index 3480d4c107..db53535591 100644 --- a/tests/Feature/GraphQL/Fieldtypes/ReplicatorFieldtypeTest.php +++ b/tests/Feature/GraphQL/Fieldtypes/ReplicatorFieldtypeTest.php @@ -219,9 +219,8 @@ public function it_outputs_nested_replicator_fields() ]]); } + #[Test] /** - * @test - * * @see https://github.com/statamic/cms/issues/3200 **/ public function it_outputs_replicator_fields_with_value_based_subfields() diff --git a/tests/Fields/FieldTransformerTest.php b/tests/Fields/FieldTransformerTest.php index 4690b98d16..b89efa2389 100644 --- a/tests/Fields/FieldTransformerTest.php +++ b/tests/Fields/FieldTransformerTest.php @@ -320,9 +320,8 @@ public function it_doesnt_remove_max_items_from_form_fieldtype() ], $fromVue['field']); } + #[Test] /** - * @test - * * @see https://github.com/statamic/cms/issues/10050 */ public function it_ensures_the_asset_container_is_saved_on_the_assets_fieldtype() diff --git a/tests/Fields/FieldsTest.php b/tests/Fields/FieldsTest.php index e2fa45c752..b4c344d7ac 100644 --- a/tests/Fields/FieldsTest.php +++ b/tests/Fields/FieldsTest.php @@ -1003,9 +1003,7 @@ public function it_sets_the_parentfield_on_all_fields() $this->assertEquals('foo', $collection['two']->parentField()); } - /** - * @test - */ + #[Test] public function it_sets_the_parentindex_on_all_fields() { $fields = new Fields([ @@ -1023,9 +1021,7 @@ public function it_sets_the_parentindex_on_all_fields() $this->assertEquals(1, $collection['two']->parentIndex()); } - /** - * @test - */ + #[Test] public function it_sets_the_parentfield_and_parentindex_on_imported_fields() { $fieldset = (new Fieldset)->setHandle('partial')->setContents([ @@ -1050,9 +1046,7 @@ public function it_sets_the_parentfield_and_parentindex_on_imported_fields() $this->assertEquals(1, $collection['bar']->parentIndex()); } - /** - * @test - */ + #[Test] public function it_sets_the_parentfield_and_parentindex_on_referenced_fields() { $fieldset = (new Fieldset)->setHandle('partial')->setContents([ diff --git a/tests/Fieldtypes/GridTest.php b/tests/Fieldtypes/GridTest.php index bb25d2dbdc..cb5d1e1553 100644 --- a/tests/Fieldtypes/GridTest.php +++ b/tests/Fieldtypes/GridTest.php @@ -529,9 +529,7 @@ public function it_converts_a_queryable_value() $this->assertEquals([['foo' => 'bar']], (new Grid)->toQueryableValue([['foo' => 'bar']])); } - /** - * @test - */ + #[Test] public function it_generates_field_path_prefix() { $fieldtype = new class extends Fieldtype diff --git a/tests/Modifiers/BackspaceTest.php b/tests/Modifiers/BackspaceTest.php index 04fb1809d0..74681f161a 100644 --- a/tests/Modifiers/BackspaceTest.php +++ b/tests/Modifiers/BackspaceTest.php @@ -36,9 +36,8 @@ public function it_removes_no_chars(): void $this->assertEquals('super', $modified); } + #[Test] /** - * @test - * * @todo This originates from substr(). Is this the intended behaviour for the modifier? */ public function it_returns_empty_string_when_passing_zero(): void