PHP Class Pantheon\Terminus\UnitTests\Models\SiteTest

Inheritance: extends ModelTestCase
Show file Open project: pantheon-systems/terminus

Protected Properties

Property Type Description
$container League\Container\Container
$workflow Pantheon\Terminus\Models\Workflow
$workflows Pantheon\Terminus\Collections\Workflows

Public Methods

Method Description
setUp ( )
testAddPaymentMethod ( ) Tests Site::addPaymentMethod($payment_method_id)
testCompleteMigration ( ) Tests Site::completeMigration()
testConverge ( ) Tests Site::converge()
testDashboardUrl ( ) Tests Site::dashboardUrl()
testDelete ( ) Tests Site::delete()
testDeployProduct ( ) Tests Site::deployProduct($upstream_id)
testFetch ( ) Tests Site::fetch($options)
testGetFeature ( ) Tests Site::getFeature($feature)
testGetFeatureDNE ( ) Tests Site::getFeature($feature) when the asked-for feature is not present
testGetName ( )
testGetOrganizations ( ) Tests Site::getOrganizations()
testRemovePaymentMethod ( ) Tests Site::removePaymentMethod()
testSerialize ( ) Tests Site::serialize()
testSetOwner ( ) Tests Site::setOwner($user_id)
testUpdateServiceLevel ( ) Tests Site::updateServiceLevel($service_level)

Method Details

setUp() public method

public setUp ( )

testAddPaymentMethod() public method

Tests Site::addPaymentMethod($payment_method_id)

testCompleteMigration() public method

Tests Site::completeMigration()

testConverge() public method

Tests Site::converge()
public testConverge ( )

testDashboardUrl() public method

Tests Site::dashboardUrl()
public testDashboardUrl ( )

testDelete() public method

Tests Site::delete()
public testDelete ( )

testDeployProduct() public method

Tests Site::deployProduct($upstream_id)
public testDeployProduct ( )

testFetch() public method

Tests Site::fetch($options)
public testFetch ( )

testGetFeature() public method

Tests Site::getFeature($feature)
public testGetFeature ( )

testGetFeatureDNE() public method

Tests Site::getFeature($feature) when the asked-for feature is not present
public testGetFeatureDNE ( )

testGetName() public method

public testGetName ( )

testGetOrganizations() public method

Tests Site::getOrganizations()

testRemovePaymentMethod() public method

Tests Site::removePaymentMethod()

testSerialize() public method

Tests Site::serialize()
public testSerialize ( )

testSetOwner() public method

Tests Site::setOwner($user_id)
public testSetOwner ( )

testUpdateServiceLevel() public method

Tests Site::updateServiceLevel($service_level)

Property Details

$container protected property

protected Container,League\Container $container
return League\Container\Container

$workflow protected property

protected Workflow,Pantheon\Terminus\Models $workflow
return Pantheon\Terminus\Models\Workflow

$workflows protected property

protected Workflows,Pantheon\Terminus\Collections $workflows
return Pantheon\Terminus\Collections\Workflows