Skip to content

Commit

Permalink
Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Nov 12, 2024
1 parent 9691e27 commit a41f757
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions tests/Transformers/BardTransformerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,12 @@ public function it_doesnt_handles_images_without_base_url()
#[Test]
public function is_enables_buttons_on_bard_field()
{
$transformer = new BardTransformer($this->blueprint, $this->field, []);
$transformer = new BardTransformer(
import: $this->import,
blueprint: $this->blueprint,
field: $this->field,
config: []
);

$transformer->transform('<p>Hello world!</p>');

Expand Down Expand Up @@ -205,7 +210,12 @@ public function is_enables_buttons_on_bard_field_in_fieldset()
],
])->save();

$transformer = new BardTransformer($blueprint, $blueprint->field('resources_bard_basic'), []);
$transformer = new BardTransformer(
import: $this->import,
blueprint: $blueprint,
field: $blueprint->field('resources_bard_basic'),
config: []
);

$transformer->transform('<p>Hello world!</p>');

Expand Down

0 comments on commit a41f757

Please sign in to comment.