callApiWithKey(self::METHOD_GET, '/domains'); $respPayload = $this->getJsonResponsePayload($resp); self::assertEquals(self::STATUS_OK, $resp->getStatusCode()); self::assertEquals([ 'domains' => [ 'data' => [ [ 'domain' => 'doma.in', 'isDefault' => true, ], [ 'domain' => 'example.com', 'isDefault' => false, ], [ 'domain' => 'some-domain.com', 'isDefault' => false, ], ], ], ], $respPayload); } }