Skip to content

Commit

Permalink
test: set i18n prop directly
Browse files Browse the repository at this point in the history
  • Loading branch information
yajra committed Jan 9, 2025
1 parent 0136e8e commit bf85ccb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/Html/Editor/Fields/TagsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ public function it_can_set_tags_escape_label_html(): void
$this->assertTrue($field->toArray()['escapeLabelHtml']);
}

#[Test]
public function it_can_set_tags_i18n_props_directly(): void
{
$field = new Tags;
$field->addButton('Add Tag');
$this->assertSame('Add Tag', $field->toArray()['i18n']['addButton']);
}

#[Test]
public function it_can_set_tags_i18n(): void
{
Expand Down

0 comments on commit bf85ccb

Please sign in to comment.