diff options
| author | Rasmus Fuhse <fuhse@data-quest.de> | 2022-08-20 19:09:44 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2022-08-20 19:09:44 +0000 |
| commit | 8b7a902269a1a20a6a5ddec387913753d01999ea (patch) | |
| tree | 3ccba1ecb515177a67826e44daee85fad71ad7ff /tests/unit | |
| parent | 16c6c03dc7e6af883f758747969077df3dd927da (diff) | |
Resolve "Icons mit Zusätze ersetzen durch Icons ohne Zusätze"
Closes #1463
Merge request studip/studip!913
Diffstat (limited to 'tests/unit')
| -rw-r--r-- | tests/unit/lib/classes/IconClassTest.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/unit/lib/classes/IconClassTest.php b/tests/unit/lib/classes/IconClassTest.php index 4596d7e..eb743b9 100644 --- a/tests/unit/lib/classes/IconClassTest.php +++ b/tests/unit/lib/classes/IconClassTest.php @@ -34,16 +34,16 @@ class IconClassTest extends \Codeception\Test\Unit function testIconCreateAsImgWithAddition() { $this->assertEquals( - '<img width="16" height="16" src="images/icons/blue/add/vote.svg" alt="" class="icon-role-clickable icon-shape-vote+add">', - Icon::create('vote+add', 'clickable')->asImg() + '<img width="16" height="16" src="images/icons/blue/vote.svg" alt="" class="icon-role-clickable icon-shape-vote">', + Icon::create('vote', 'clickable')->asImg() ); } function testIconCreateAsImgWithSize() { $this->assertEquals( - '<img width="20" height="20" src="images/icons/blue/add/vote.svg" alt="" class="icon-role-clickable icon-shape-vote+add">', - Icon::create('vote+add', 'clickable')->asImg(20) + '<img width="20" height="20" src="images/icons/blue/vote.svg" alt="" class="icon-role-clickable icon-shape-vote">', + Icon::create('vote', 'clickable')->asImg(20) ); } @@ -135,16 +135,16 @@ class IconClassTest extends \Codeception\Test\Unit function testIconCreateAsCSSWithSize() { $this->assertEquals( - 'background-image:url(images/icons/blue/add/vote.svg);background-size:17px 17px;', - Icon::create('vote+add', 'clickable')->asCSS(17) + 'background-image:url(images/icons/blue/vote.svg);background-size:17px 17px;', + Icon::create('vote', 'clickable')->asCSS(17) ); } function testIconCreateAsImagePath() { $this->assertEquals( - 'images/icons/blue/add/vote.svg', - Icon::create('vote+add', 'clickable')->asImagePath() + 'images/icons/blue/vote.svg', + Icon::create('vote', 'clickable')->asImagePath() ); } |
