Add failing test case

This commit is contained in:
2023-06-27 09:31:06 +01:00
parent 9c2321fe3a
commit f6443f5dff

View File

@@ -248,4 +248,11 @@ class IconRuntimeTest extends TestCase
$this->expectException(\InvalidArgumentException::class);
$this->icon->renderIcon(['icon' => self::ICON, 'fake-key-should-throw' => null]);
}
public function testStrokeCurrentColorInstancesAreRemoved(): void
{
$needle = 'stroke="currentColor"';
$contents = $this->icon->renderIcon(['icon' => self::ICON]);
$this->assertStringNotContainsString($needle, $contents);
}
}