You are here

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

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

Provides test data.

4 calls to AcsfSiteTest::getTestData()
AcsfSiteTest::testAcsfSiteGet in tests/AcsfSiteTest.php
Tests the __get() method.
AcsfSiteTest::testAcsfSiteIsset in tests/AcsfSiteTest.php
Tests the __isset() method.
AcsfSiteTest::testAcsfSiteSet in tests/AcsfSiteTest.php
Tests the __set() method.
AcsfSiteTest::testAcsfSiteUnset in tests/AcsfSiteTest.php
Tests the __unset() method.

File

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

Class

AcsfSiteTest
AcsfSiteTest.

Code

public function getTestData() {
  $data = [
    'true' => TRUE,
    'false' => FALSE,
    'string' => 'unit_test_string_value',
    'int' => mt_rand(0, 64),
    'float' => mt_rand() / mt_getrandmax(),
    'array' => [
      'foo',
      'bar',
      'baz',
      'qux',
    ],
  ];
  $data['object'] = (object) $data;
  return $data;
}