diff --git a/tests/Html/Editor/Fields/TagsTest.php b/tests/Html/Editor/Fields/TagsTest.php index a087605..da466e0 100644 --- a/tests/Html/Editor/Fields/TagsTest.php +++ b/tests/Html/Editor/Fields/TagsTest.php @@ -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 {