File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/test/php/Gomoob/Pushwoosh/Model/Notification Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments