Documentation

InsightsTest extends CloudApiTestCase
in

Class CloudApiTestCase

Table of Contents

$properties
$alertProperties
$moduleProperties
testGetInsights() mixed
testGetEnvironmentInsights() mixed
testGetInsight() mixed
testGetAllAlerts() mixed
testGetAlert() mixed
testIgnoreAlert() mixed
testRestoreAlert() mixed
testRevokeSite() mixed
testUnrevokeSite() mixed
testGetModules() mixed
getPsr7StreamForFixture() Returns a PSR7 Stream for a given fixture. Stream
getPsr7JsonResponseForFixture() Returns a PSR7 Response (JSON) for a given fixture. Response
getPsr7GzipResponseForFixture() Returns a PSR7 Response (Gzip) for a given fixture. Response
getMockClient() Mock client class. Client

Properties

$properties

public mixed $properties = ['uuid', 'label', 'hostname', 'status', 'updatedAt', 'lastConnectedAt', 'scores', 'counts', 'flags', 'links']

$alertProperties

public mixed $alertProperties = ['alert_id', 'uuid', 'name', 'message', 'article_link', 'severity', 'severity_label', 'failed_value', 'fix_details', 'categories', 'flags', 'links']

$moduleProperties

public mixed $moduleProperties = ['module_id', 'name', 'filename', 'version', 'supported_majors', 'recommended_major', 'package', 'core', 'project', 'release_date', 'flags', 'tags']

Methods

testGetInsights()

public testGetInsights( ) : mixed
Return values
mixed

testGetEnvironmentInsights()

public testGetEnvironmentInsights( ) : mixed
Return values
mixed

testGetInsight()

public testGetInsight( ) : mixed
Return values
mixed

testGetAllAlerts()

public testGetAllAlerts( ) : mixed
Return values
mixed

testGetAlert()

public testGetAlert( ) : mixed
Return values
mixed

testIgnoreAlert()

public testIgnoreAlert( ) : mixed
Return values
mixed

testRestoreAlert()

public testRestoreAlert( ) : mixed
Return values
mixed

testRevokeSite()

public testRevokeSite( ) : mixed
Return values
mixed

testUnrevokeSite()

public testUnrevokeSite( ) : mixed
Return values
mixed

testGetModules()

public testGetModules( ) : mixed
Return values
mixed

getPsr7StreamForFixture()

Returns a PSR7 Stream for a given fixture.

protected getPsr7StreamForFixture( $fixture : string ) : Stream
Parameters
$fixture : string

The fixture to create the stream for.

Return values
Stream

getPsr7JsonResponseForFixture()

Returns a PSR7 Response (JSON) for a given fixture.

protected getPsr7JsonResponseForFixture( $fixture : string [, $statusCode : int = 200 ] ) : Response
Parameters
$fixture : string

The fixture to create the response for.

$statusCode : int = 200

A HTTP Status Code for the response.

Return values
Response

getPsr7GzipResponseForFixture()

Returns a PSR7 Response (Gzip) for a given fixture.

protected getPsr7GzipResponseForFixture( $fixture : string [, $statusCode : int = 200 ] ) : Response
Parameters
$fixture : string

The fixture to create the response for.

$statusCode : int = 200

A HTTP Status Code for the response.

Return values
Response

getMockClient()

Mock client class.

protected getMockClient( [ $response : mixed = '' ] ) : Client
Parameters
$response : mixed = ''
Return values
Client

Search results