Permalink
Browse files

Some BasePusher tests added

  • Loading branch information...
1 parent 01e1d02 commit 2a95ddf13416928f28a76949459cb82a6f527113 Ph3nol committed Nov 5, 2012
Showing with 21 additions and 1 deletion.
  1. +21 −1 tests/units/Sly/NotificationPusher/Pusher/BasePusher.php
@@ -65,7 +65,7 @@ public function testDefaultConfig()
public function testGetDeviceUUIDs()
{
$basePusher = new BaseBasePusher(array(
- 'devices' => array('ABC', 'DEF', null, '', false),
+ 'devices' => array('ABC', 'DEF', 'DEF', null, '', false),
));
$this->assert
@@ -75,6 +75,26 @@ public function testGetDeviceUUIDs()
;
}
+ public function testGetDeviceUUIDsWithArrays()
+ {
+ $basePusher = new BaseBasePusher(array(
+ 'devices' => array(
+ array('ABC', 1),
+ array('DEF', 2),
+ array('DEF', 3),
+ array('DEF'),
+ null,
+ '',
+ false
+ ),
+ ));
+
+ $this->assert
+ ->array($basePusher->getDevicesUUIDs())
+ ->hasSize(2)
+ ;
+ }
+
public function testAddMessage()
{
$basePusher = new BaseBasePusher(array(

0 comments on commit 2a95ddf

Please sign in to comment.