You are here

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

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

Tests the __set() method.

Test the public interface by setting a class property, then checking if the value is available using the __get() method.

File

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

Class

AcsfSiteTest
AcsfSiteTest.

Code

public function testAcsfSiteSet() {
  $site = new AcsfSite($this->site_id);
  $data = $this
    ->getTestData();
  foreach ($data as $type => $value) {
    $site->{$type} = $value;
    $this
      ->assertSame($site
      ->__get($type), $value);
  }
}