There was an error while loading. Please reload this page.
1 parent 0dea03a commit bc49923Copy full SHA for bc49923
1 file changed
tests/Form/Field/FileListFieldTest.php
@@ -7,6 +7,7 @@
7
use Kirby\Exception\InvalidArgumentException;
8
use Kirby\Exception\PermissionException;
9
use Kirby\Form\Field;
10
+use Kirby\Toolkit\HtmlString;
11
use PHPUnit\Framework\Attributes\CoversClass;
12
use PHPUnit\Framework\Attributes\DataProvider;
13
@@ -98,7 +99,8 @@ public function testData(): void
98
99
100
$this->assertCount(3, $data);
101
$this->assertSame('photography/a.jpg', $data[0]['id']);
- $this->assertSame('a.jpg', $data[0]['text']);
102
+ $this->assertInstanceOf(HtmlString::class, $data[0]['text']);
103
+ $this->assertSame('a.jpg', (string)$data[0]['text']);
104
}
105
106
public function testTotal(): void
0 commit comments