Skip to content

Commit 33b09d2

Browse files
committed
Add tests
1 parent faa061d commit 33b09d2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Icons/tests/Unit/IconRendererTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ public static function provideAriaHiddenCases(): iterable
188188
['aria-hidden' => 'true'],
189189
'<svg aria-hidden="true"><path d="M0 0L12 12"/></svg>',
190190
];
191+
yield 'aria-hidden false + aria-label' => [
192+
['aria-hidden' => 'false', 'aria-label' => 'foo'],
193+
'<svg aria-hidden="false" aria-label="foo"><path d="M0 0L12 12"/></svg>',
194+
];
191195
yield 'title attribute' => [
192196
['title' => 'foo'],
193197
'<svg title="foo"><path d="M0 0L12 12"/></svg>',
@@ -196,6 +200,10 @@ public static function provideAriaHiddenCases(): iterable
196200
['aria-labelledby' => 'foo'],
197201
'<svg aria-labelledby="foo"><path d="M0 0L12 12"/></svg>',
198202
];
203+
yield 'aria-label attribute' => [
204+
['aria-label' => 'foo'],
205+
'<svg aria-label="foo"><path d="M0 0L12 12"/></svg>',
206+
];
199207
}
200208

201209
private function createRegistry(array $icons): IconRegistryInterface

0 commit comments

Comments
 (0)