Documentation

OrganizationsTest extends CloudApiTestCase
in

Class CloudApiTestCase

Table of Contents

$organizationProperties
$invitationProperties
$applicationProperties
$teamProperties
testGetOrganizations() mixed
testCreateOrganizationAdminInvite() mixed
testGetOrganizationApplications() mixed
testGetOrganizationTeams() mixed
testGetOrganizationInvitees() mixed
testLeaveOrganization() mixed
testChangeOwner() 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

$organizationProperties

public mixed $organizationProperties = ['id', 'uuid', 'name', 'owner', 'subscriptions_total', 'admins_total', 'users_total', 'teams_total', 'roles_total', 'links']

$invitationProperties

public mixed $invitationProperties = ['uuid', 'email', 'author', 'applications', 'organization', 'roles', 'team', 'created_at', 'token', 'flags', 'links']

$applicationProperties

protected mixed $applicationProperties = ['uuid', 'name', 'hosting', 'subscription', 'organization', 'type', 'flags', 'status', 'links']

$teamProperties

protected mixed $teamProperties = ['uuid', 'name', 'created_at', 'updated_at', 'organization', 'links']

Methods

testGetOrganizations()

public testGetOrganizations( ) : mixed
Return values
mixed

testCreateOrganizationAdminInvite()

public testCreateOrganizationAdminInvite( ) : mixed
Return values
mixed

testGetOrganizationApplications()

public testGetOrganizationApplications( ) : mixed
Return values
mixed

testGetOrganizationTeams()

public testGetOrganizationTeams( ) : mixed
Return values
mixed

testGetOrganizationInvitees()

public testGetOrganizationInvitees( ) : mixed
Return values
mixed

testLeaveOrganization()

public testLeaveOrganization( ) : 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