Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed Dec 13, 2024
1 parent 9a32871 commit 34e8b23
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Fields/BlueprintTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ public function converts_to_array_suitable_for_rendering_fields_in_publish_compo
'visibility' => 'visible',
'replicator_preview' => true,
'duplicate' => true,
'revisable' => true,
'type' => 'text',
'validate' => 'required|min:2',
'input_type' => 'text',
Expand Down Expand Up @@ -474,6 +475,7 @@ public function converts_to_array_suitable_for_rendering_fields_in_publish_compo
'visibility' => 'visible',
'replicator_preview' => true,
'duplicate' => true,
'revisable' => true,
'type' => 'textarea',
'placeholder' => null,
'validate' => 'min:2',
Expand Down Expand Up @@ -563,6 +565,7 @@ public function converts_to_array_suitable_for_rendering_prefixed_conditional_fi
'visibility' => 'visible',
'replicator_preview' => true,
'duplicate' => true,
'revisable' => true,
'type' => 'text',
'input_type' => 'text',
'placeholder' => null,
Expand All @@ -589,6 +592,7 @@ public function converts_to_array_suitable_for_rendering_prefixed_conditional_fi
'visibility' => 'visible',
'replicator_preview' => true,
'duplicate' => true,
'revisable' => true,
'type' => 'text',
'input_type' => 'text',
'placeholder' => null,
Expand Down
4 changes: 4 additions & 0 deletions tests/Fields/FieldsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ public function converts_to_array_suitable_for_rendering_fields_in_publish_compo
'sortable' => true,
'replicator_preview' => true,
'duplicate' => true,
'revisable' => true,
],
[
'handle' => 'two',
Expand All @@ -457,6 +458,7 @@ public function converts_to_array_suitable_for_rendering_fields_in_publish_compo
'sortable' => true,
'replicator_preview' => true,
'duplicate' => true,
'revisable' => true,
],
], $fields->toPublishArray());
}
Expand Down Expand Up @@ -522,6 +524,7 @@ public function converts_to_array_suitable_for_rendering_prefixed_conditional_fi
'sortable' => true,
'replicator_preview' => true,
'duplicate' => true,
'revisable' => true,
],
[
'handle' => 'nested_deeper_two',
Expand All @@ -548,6 +551,7 @@ public function converts_to_array_suitable_for_rendering_prefixed_conditional_fi
'sortable' => true,
'replicator_preview' => true,
'duplicate' => true,
'revisable' => true,
],
], $fields->toPublishArray());
}
Expand Down
2 changes: 2 additions & 0 deletions tests/Fields/SectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ public function converts_to_array_suitable_for_rendering_fields_in_publish_compo
'visibility' => 'visible',
'replicator_preview' => true,
'duplicate' => true,
'revisable' => true,
'type' => 'text',
'validate' => 'required|min:2',
'input_type' => 'text',
Expand Down Expand Up @@ -152,6 +153,7 @@ public function converts_to_array_suitable_for_rendering_fields_in_publish_compo
'visibility' => 'visible',
'replicator_preview' => true,
'duplicate' => true,
'revisable' => true,
'type' => 'textarea',
'validate' => 'min:2',
'placeholder' => null,
Expand Down
2 changes: 2 additions & 0 deletions tests/Fields/TabTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public function converts_to_array_suitable_for_rendering_fields_in_publish_compo
'visibility' => 'visible',
'replicator_preview' => true,
'duplicate' => true,
'revisable' => true,
'type' => 'text',
'validate' => 'required|min:2',
'input_type' => 'text',
Expand Down Expand Up @@ -177,6 +178,7 @@ public function converts_to_array_suitable_for_rendering_fields_in_publish_compo
'visibility' => 'visible',
'replicator_preview' => true,
'duplicate' => true,
'revisable' => true,
'type' => 'textarea',
'validate' => 'min:2',
'placeholder' => null,
Expand Down
2 changes: 2 additions & 0 deletions tests/Fieldtypes/NestedFieldsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function it_preprocesses_each_value_when_used_for_config()
->andReturn(new class extends Fieldtype
{
protected $component = 'assets';

protected $configFields = [
'max_files' => ['type' => 'integer'],
'container' => ['type' => 'plain'],
Expand Down Expand Up @@ -84,6 +85,7 @@ public function preProcess($data)
'visibility' => 'visible',
'replicator_preview' => true,
'duplicate' => true,
'revisable' => true,
'type' => 'assets',
'max_files' => 2,
'container' => 'main',
Expand Down
3 changes: 3 additions & 0 deletions tests/Fieldtypes/SetsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ public function it_preprocesses_for_config_with_groups()
'visibility' => 'visible',
'replicator_preview' => true,
'duplicate' => true,
'revisable' => true,
'type' => 'text',
'input_type' => 'text',
'placeholder' => null,
Expand Down Expand Up @@ -264,6 +265,7 @@ public function it_preprocesses_for_config_with_groups()
'visibility' => 'visible',
'replicator_preview' => true,
'duplicate' => true,
'revisable' => true,
'type' => 'text',
'input_type' => 'text',
'placeholder' => null,
Expand Down Expand Up @@ -324,6 +326,7 @@ public function it_preprocesses_for_config_without_groups()
'visibility' => 'visible',
'replicator_preview' => true,
'duplicate' => true,
'revisable' => true,
'type' => 'text',
'input_type' => 'text',
'placeholder' => null,
Expand Down

0 comments on commit 34e8b23

Please sign in to comment.