public function AcsfConfigTest::testAcsfConfigMissingParameters in Acquia Cloud Site Factory Connector 8.2
Same name and namespace in other branches
- 8 tests/AcsfConfigTest.php \AcsfConfigTest::testAcsfConfigMissingParameters()
Tests that a PHP error is thrown when no constructor params are provided.
File
- tests/
AcsfConfigTest.php, line 47 - Provides PHPUnit tests for AcsfConfig.
Class
- AcsfConfigTest
- Provides PHPUnit tests for AcsfConfig.
Code
public function testAcsfConfigMissingParameters() {
// Intentionally avoid providing the required constructor parameters to
// check that the environment variables are used.
$this
->expectException(Notice::class);
$this
->expectExceptionMessage('AH_SITE_GROUP');
new AcsfConfigUnitTest();
}