Update MicroweberHostingSubscriptionCreateTest.php

This commit is contained in:
Bozhidar 2024-05-15 00:42:16 +03:00
parent 5db35d932b
commit e3a73c702d

View file

@ -74,6 +74,10 @@ class MicroweberHostingSubscriptionCreateTest extends ActionTestCase
'domain' => $hostingSubscriptionDomain,
])->json();
if (!isset($callHostingSubscriptionStoreResponse['status'])) {
$this->fail(json_encode($callHostingSubscriptionStoreResponse));
}
$this->assertArrayHasKey('status', $callHostingSubscriptionStoreResponse);
$this->assertTrue($callHostingSubscriptionStoreResponse['status'] == 'ok');
$this->assertArrayHasKey('data', $callHostingSubscriptionStoreResponse);