Skip to content

Commit 2d89918

Browse files
Nandor HuszarNandor Huszar
authored andcommitted
Adding content_available option test
1 parent e84c033 commit 2d89918

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/NotificationTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,10 @@ public function testJsonSerializeWithIcon()
2929
$this->fixture->setIcon('name');
3030
$this->assertEquals(array('title' => 'foo', 'body' =>'bar', 'icon' => 'name'), $this->fixture->jsonSerialize());
3131
}
32-
}
32+
33+
public function testJsonSerializeWithContentAvailable()
34+
{
35+
$this->fixture->setContentAvailable(true);
36+
$this->assertEquals(array('title' => 'foo', 'body' =>'bar', 'content_available' => true), $this->fixture->jsonSerialize());
37+
}
38+
}

0 commit comments

Comments
 (0)