You are here

public function AcsfSiteTest::setUp in Acquia Cloud Site Factory Connector 8.2

Same name and namespace in other branches
  1. 8 tests/AcsfSiteTest.php \AcsfSiteTest::setUp()

Setup.

File

tests/AcsfSiteTest.php, line 33
Provides PHPUnit tests for Acsf Site.

Class

AcsfSiteTest
AcsfSiteTest.

Code

public function setUp() {

  // Simulate the sites.json configuration.
  $GLOBALS['gardens_site_settings']['conf']['acsf_site_id'] = $this->site_id;
  $drupalMock = Mockery::mock('overload:Drupal');
  $drupalMock
    ->shouldReceive('service')
    ->with('acsf.variable_storage')
    ->once()
    ->andReturn(new AcsfVariableStorageMock());
}