Skip to content

Commit 800b1d0

Browse files
committed
chrome_image test
1 parent 8428b3b commit 800b1d0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/test/php/Gomoob/Pushwoosh/Model/Notification/ChromeTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,16 @@ public function testGetSetTitle()
5555
$this->assertSame($chrome, $chrome->setTitle('Title'));
5656
$this->assertSame('Title', $chrome->getTitle());
5757
}
58+
59+
/**
60+
* Test method for the <code>#getImage()</code> and <code>#setImage($image)</code> functions.
61+
*/
62+
public function testGetSetImage()
63+
{
64+
$chrome = new Chrome();
65+
$this->assertSame($chrome, $chrome->setImage('Image'));
66+
$this->assertSame('Image', $chrome->getImage());
67+
}
5868

5969
/**
6070
* Test method for the <code>#jsonSerialize()</code> function.
@@ -65,11 +75,13 @@ public function testJsonSerialize()
6575
->setGcmTtl(3600)
6676
->setIcon('icon')
6777
->setTitle('Title')
78+
->setImage('Image')
6879
->jsonSerialize();
6980

7081
$this->assertCount(3, $array);
7182
$this->assertSame(3600, $array['chrome_gcm_ttl']);
7283
$this->assertSame('icon', $array['chrome_icon']);
7384
$this->assertSame('Title', $array['chrome_title']);
85+
$this->assertSame('Image', $array['chrome_image']);
7486
}
7587
}

0 commit comments

Comments
 (0)