You are here

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

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

Tests the __get() method.

Test the public interface by using the __set() directly and then checking if the value is set for the class property.

File

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

Class

AcsfSiteTest
AcsfSiteTest.

Code

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