Skip to content
Snippets Groups Projects
Commit ea5d4ff5 authored by Moritz Strohm's avatar Moritz Strohm
Browse files

second fix for BIESt #533

parent 00db179b
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ class IconClassTest extends \Codeception\Test\Unit ...@@ -24,7 +24,7 @@ class IconClassTest extends \Codeception\Test\Unit
function testIconCreateAsImg() function testIconCreateAsImg()
{ {
$this->assertEquals( $this->assertEquals(
'<img width="16" height="16" src="images/icons/blue/vote.svg" alt="vote" class="icon-role-clickable icon-shape-vote">', '<img width="16" height="16" src="images/icons/blue/vote.svg" alt="" class="icon-role-clickable icon-shape-vote">',
Icon::create('vote', 'clickable')->asImg() Icon::create('vote', 'clickable')->asImg()
); );
} }
...@@ -32,7 +32,7 @@ class IconClassTest extends \Codeception\Test\Unit ...@@ -32,7 +32,7 @@ class IconClassTest extends \Codeception\Test\Unit
function testIconCreateAsImgWithAddition() function testIconCreateAsImgWithAddition()
{ {
$this->assertEquals( $this->assertEquals(
'<img width="16" height="16" src="images/icons/blue/add/vote.svg" alt="vote+add" class="icon-role-clickable icon-shape-vote+add">', '<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() Icon::create('vote+add', 'clickable')->asImg()
); );
} }
...@@ -40,7 +40,7 @@ class IconClassTest extends \Codeception\Test\Unit ...@@ -40,7 +40,7 @@ class IconClassTest extends \Codeception\Test\Unit
function testIconCreateAsImgWithSize() function testIconCreateAsImgWithSize()
{ {
$this->assertEquals( $this->assertEquals(
'<img width="20" height="20" src="images/icons/blue/add/vote.svg" alt="vote+add" class="icon-role-clickable icon-shape-vote+add">', '<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) Icon::create('vote+add', 'clickable')->asImg(20)
); );
} }
...@@ -56,7 +56,7 @@ class IconClassTest extends \Codeception\Test\Unit ...@@ -56,7 +56,7 @@ class IconClassTest extends \Codeception\Test\Unit
function testIconCreateAsImgWithHspace() function testIconCreateAsImgWithHspace()
{ {
$this->assertEquals( $this->assertEquals(
'<img hspace="3" width="16" height="16" src="images/icons/blue/arr_2left.svg" alt="arr_2left" class="icon-role-clickable icon-shape-arr_2left">', '<img hspace="3" width="16" height="16" src="images/icons/blue/arr_2left.svg" alt="" class="icon-role-clickable icon-shape-arr_2left">',
Icon::create('arr_2left', 'clickable')->asImg(['hspace' => 3]) Icon::create('arr_2left', 'clickable')->asImg(['hspace' => 3])
); );
} }
...@@ -64,7 +64,7 @@ class IconClassTest extends \Codeception\Test\Unit ...@@ -64,7 +64,7 @@ class IconClassTest extends \Codeception\Test\Unit
function testIconCreateAsImgWithClass() function testIconCreateAsImgWithClass()
{ {
$this->assertEquals( $this->assertEquals(
'<img class="text-bottom icon-role-info icon-shape-staple" width="20" height="20" src="images/icons/black/staple.svg" alt="staple">', '<img class="text-bottom icon-role-info icon-shape-staple" width="20" height="20" src="images/icons/black/staple.svg" alt="">',
Icon::create('staple', 'info')->asImg(20, ['class' => 'text-bottom']) Icon::create('staple', 'info')->asImg(20, ['class' => 'text-bottom'])
); );
} }
...@@ -81,7 +81,7 @@ class IconClassTest extends \Codeception\Test\Unit ...@@ -81,7 +81,7 @@ class IconClassTest extends \Codeception\Test\Unit
function testIconCreateAsInput() function testIconCreateAsInput()
{ {
$this->assertEquals( $this->assertEquals(
'<input type="image" class="text-bottom icon-role-clickable icon-shape-upload" width="20" height="20" src="images/icons/blue/upload.svg" alt="upload">', '<input type="image" class="text-bottom icon-role-clickable icon-shape-upload" width="20" height="20" src="images/icons/blue/upload.svg" alt="">',
Icon::create('upload', 'clickable')->asInput(20, ['class' => 'text-bottom']) Icon::create('upload', 'clickable')->asInput(20, ['class' => 'text-bottom'])
); );
} }
...@@ -149,7 +149,7 @@ class IconClassTest extends \Codeception\Test\Unit ...@@ -149,7 +149,7 @@ class IconClassTest extends \Codeception\Test\Unit
function testIconCreateAsImgWithoutSize() function testIconCreateAsImgWithoutSize()
{ {
$this->assertEquals( $this->assertEquals(
'<img src="images/icons/blue/vote.svg" alt="vote" class="icon-role-clickable icon-shape-vote">', '<img src="images/icons/blue/vote.svg" alt="" class="icon-role-clickable icon-shape-vote">',
Icon::create('vote', 'clickable')->asImg(false) Icon::create('vote', 'clickable')->asImg(false)
); );
} }
...@@ -157,7 +157,7 @@ class IconClassTest extends \Codeception\Test\Unit ...@@ -157,7 +157,7 @@ class IconClassTest extends \Codeception\Test\Unit
function testIconCreateAsInputWithoutSize() function testIconCreateAsInputWithoutSize()
{ {
$this->assertEquals( $this->assertEquals(
'<input type="image" src="images/icons/blue/upload.svg" alt="upload" class="icon-role-clickable icon-shape-upload">', '<input type="image" src="images/icons/blue/upload.svg" alt="" class="icon-role-clickable icon-shape-upload">',
Icon::create('upload', 'clickable')->asInput(false) Icon::create('upload', 'clickable')->asInput(false)
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment