We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbb7e6b commit de4b2b1Copy full SHA for de4b2b1
1 file changed
tests/Unit/Messaging/ApnsConfigTest.php
@@ -94,10 +94,10 @@ public function itCanBeGivenALiveActivityToken(): void
94
{
95
$config = ApnsConfig::fromArray(['live_activity_token' => 'token']);
96
97
- $payload = Json::decode(Json::encode($config), true);
98
-
99
- $this->assertArrayHasKey('live_activity_token', $payload);
100
- $this->assertSame('token', $payload['live_activity_token']);
+ $this->assertJsonStringEqualsJsonString(
+ Json::encode($config),
+ Json::encode(ApnsConfig::new()->withLiveActivityToken('token')),
+ );
101
}
102
103
#[Test]
0 commit comments