Skip to content

Commit bf85ccb

Browse files
committed
test: set i18n prop directly
1 parent 0136e8e commit bf85ccb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/Html/Editor/Fields/TagsTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ public function it_can_set_tags_escape_label_html(): void
3535
$this->assertTrue($field->toArray()['escapeLabelHtml']);
3636
}
3737

38+
#[Test]
39+
public function it_can_set_tags_i18n_props_directly(): void
40+
{
41+
$field = new Tags;
42+
$field->addButton('Add Tag');
43+
$this->assertSame('Add Tag', $field->toArray()['i18n']['addButton']);
44+
}
45+
3846
#[Test]
3947
public function it_can_set_tags_i18n(): void
4048
{

0 commit comments

Comments
 (0)