public function AcsfConfigTest::testAcsfConfigNoMissing in Acquia Cloud Site Factory Connector 8
Same name and namespace in other branches
- 8.2 tests/AcsfConfigTest.php \AcsfConfigTest::testAcsfConfigNoMissing()
Tests no PHP error is thrown when the necessary parameters are provided.
File
- tests/
AcsfConfigTest.php, line 76 - Provides PHPUnit tests for AcsfConfig.
Class
- AcsfConfigTest
- Provides PHPUnit tests for AcsfConfig.
Code
public function testAcsfConfigNoMissing() {
try {
$no_error = TRUE;
// Provide bot the $ah_site and $ah_env parameters to ensure no errors are
// triggered for missing environment variables.
$config = new AcsfConfigUnitTest('ah_site_group', 'ah_site_environment');
} catch (Notice $e) {
$no_error = FALSE;
}
$this
->assertTrue($no_error);
}