public function AcsfSiteTest::testSavedData in Acquia Cloud Site Factory Connector 8.2
Same name and namespace in other branches
- 8 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);
}