-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add properties to Subscription/GetStatusResponse class
- Loading branch information
1 parent
d10c351
commit 65aabfe
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace ImmobiliareLabs\BrazeSDK\Test\Response\Subscription; | ||
|
||
use ImmobiliareLabs\BrazeSDK\Response\Subscription\GetStatusResponse; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
class GetStatusResponseTest extends TestCase | ||
{ | ||
public function testFillFromArray(): void | ||
{ | ||
$response = new GetStatusResponse(); | ||
|
||
$status = ['external_id' => 'status']; | ||
|
||
$response->fillFromArray(['status' => $status]); | ||
|
||
$this->assertSame($status, $response->status); | ||
} | ||
} |