callApiWithKey(self::METHOD_GET, '/short-urls/invalid/visits'); $payload = $this->getJsonResponsePayload($resp); $this->assertEquals(self::STATUS_NOT_FOUND, $resp->getStatusCode()); $this->assertEquals(self::STATUS_NOT_FOUND, $payload['status']); $this->assertEquals('INVALID_SHORTCODE', $payload['type']); $this->assertEquals('INVALID_SHORTCODE', $payload['error']); // Deprecated $this->assertEquals($expectedDetail, $payload['detail']); $this->assertEquals($expectedDetail, $payload['message']); // Deprecated $this->assertEquals('Short URL not found', $payload['title']); $this->assertEquals('invalid', $payload['shortCode']); } }