Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Commit 7e6534d

Browse files
Update test to use getIcon()
1 parent f7523c6 commit 7e6534d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/FeatherTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testIconsHasDefaultAttributes(): void
4444
public function testIconIsObject(): void
4545
{
4646
foreach ($this->xmlTestData as $testData) {
47-
$this->assertInstanceOf(Icon::class, $this->icons->get($testData['name']));
47+
$this->assertInstanceOf(Icon::class, $this->icons->getIcon($testData['name']));
4848
}
4949
}
5050

@@ -53,7 +53,7 @@ public function testIconDefaultXML(): void
5353
foreach ($this->xmlTestData as $testData) {
5454
$this->assertXMLStringEqualsXMLString(
5555
$testData['xml'],
56-
(string)$this->icons->get($testData['name']),
56+
(string)$this->icons->getIcon($testData['name']),
5757
'Icon fail: ' . $testData['name']
5858
);
5959
}
@@ -65,7 +65,7 @@ public function testIconXMLWithAttributes(): void
6565

6666
$this->assertXMLStringEqualsXMLString(
6767
$testData['xml'],
68-
(string)$this->icons->get($testData['name'], $testData['attributes']),
68+
(string)$this->icons->getIcon($testData['name'], $testData['attributes']),
6969
'XML custom attribute fail'
7070
);
7171
}
@@ -80,7 +80,7 @@ public function testIconXMLWithAttributesFromClass(): void
8080

8181
$this->assertXMLStringEqualsXMLString(
8282
$testData['xml'],
83-
(string)$this->icons->get($testData['name']),
83+
(string)$this->icons->getIcon($testData['name']),
8484
'XML custom attribute on class fail'
8585
);
8686

@@ -91,6 +91,6 @@ public function testIconNotFound(): void
9191
{
9292
$this->expectException(IconNotFoundException::class);
9393

94-
$this->icons->get('icon-that-should-not-be-found');
94+
$this->icons->getIcon('icon-that-should-not-be-found');
9595
}
9696
}

0 commit comments

Comments
 (0)