You are here

public function AcsfSiteTest::testSavedData in Acquia Cloud Site Factory Connector 8

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

Tests the save() method.

File

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

Class

AcsfSiteTest
AcsfSiteTest.

Code

public function testSavedData() {
  $string = 'test value';
  $site = new AcsfSite($this->site_id);
  $site->custom = $string;
  $site
    ->save();
  unset($site);
  $clone = new AcsfSite($this->site_id);
  $this
    ->assertEquals($clone->custom, $string);
}