From 81c7cc5a873d27fdf8c6bbc1eb7026b7c60e4b35 Mon Sep 17 00:00:00 2001 From: Daniil Glushchenko Date: Wed, 19 Jun 2024 17:33:04 +0300 Subject: [PATCH] Fix tests --- .../php/Gomoob/Pushwoosh/Model/Notification/AndroidTest.php | 2 +- src/test/php/Gomoob/Pushwoosh/Model/Notification/HuaweiTest.php | 2 +- src/test/php/Gomoob/Pushwoosh/Model/Notification/IOSTest.php | 2 +- .../Gomoob/Pushwoosh/Model/Notification/NotificationTest.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/php/Gomoob/Pushwoosh/Model/Notification/AndroidTest.php b/src/test/php/Gomoob/Pushwoosh/Model/Notification/AndroidTest.php index d97ec31..4078ff7 100644 --- a/src/test/php/Gomoob/Pushwoosh/Model/Notification/AndroidTest.php +++ b/src/test/php/Gomoob/Pushwoosh/Model/Notification/AndroidTest.php @@ -174,7 +174,7 @@ public function testJsonSerialize() ->setVibration(true) ->jsonSerialize(); - $this->assertCount(12, $array); + $this->assertCount(13, $array); $this->assertSame('http://example.com/banner.png', $array['android_banner']); $this->assertSame(5, $array['android_badges']); $this->assertSame('http://example.com/image.png', $array['android_custom_icon']); diff --git a/src/test/php/Gomoob/Pushwoosh/Model/Notification/HuaweiTest.php b/src/test/php/Gomoob/Pushwoosh/Model/Notification/HuaweiTest.php index 217c616..3738724 100644 --- a/src/test/php/Gomoob/Pushwoosh/Model/Notification/HuaweiTest.php +++ b/src/test/php/Gomoob/Pushwoosh/Model/Notification/HuaweiTest.php @@ -120,7 +120,7 @@ public function testJsonSerialize() ->setVibration(true) ->jsonSerialize(); - $this->assertCount(12, $array); + $this->assertCount(13, $array); $this->assertSame('http://example.com/banner.png', $array['huawei_android_banner']); $this->assertSame(5, $array['huawei_android_badges']); $this->assertSame('http://example.com/image.png', $array['huawei_android_custom_icon']); diff --git a/src/test/php/Gomoob/Pushwoosh/Model/Notification/IOSTest.php b/src/test/php/Gomoob/Pushwoosh/Model/Notification/IOSTest.php index 9390a2c..467413f 100644 --- a/src/test/php/Gomoob/Pushwoosh/Model/Notification/IOSTest.php +++ b/src/test/php/Gomoob/Pushwoosh/Model/Notification/IOSTest.php @@ -120,7 +120,7 @@ public function testJsonSerialize() ->setTrimContent(true) ->jsonSerialize(); - $this->assertCount(7, $array); + $this->assertCount(8, $array); $this->assertSame(1, $array['apns_trim_content']); $this->assertSame(5, $array['ios_badges']); $this->assertSame('1', $array['ios_category_id']); diff --git a/src/test/php/Gomoob/Pushwoosh/Model/Notification/NotificationTest.php b/src/test/php/Gomoob/Pushwoosh/Model/Notification/NotificationTest.php index 1d4a03f..8feb71b 100644 --- a/src/test/php/Gomoob/Pushwoosh/Model/Notification/NotificationTest.php +++ b/src/test/php/Gomoob/Pushwoosh/Model/Notification/NotificationTest.php @@ -622,7 +622,7 @@ public function testJsonSerialize() ->jsonSerialize(); // Test the generic properties - $this->assertCount(77, $array); + $this->assertCount(80, $array); $this->assertSame('now', $array['send_date']); $this->assertSame('America/New_York', $array['timezone']); $this->assertTrue($array['ignore_user_timezone']);