public function AcsfConfigTest::setUp in Acquia Cloud Site Factory Connector 8
Same name and namespace in other branches
- 8.2 tests/AcsfConfigTest.php \AcsfConfigTest::setUp()
Setup.
File
- tests/
AcsfConfigTest.php, line 20 - Provides PHPUnit tests for AcsfConfig.
Class
- AcsfConfigTest
- Provides PHPUnit tests for AcsfConfig.
Code
public function setUp() {
// The files in this directory can't be autoloaded as long as they don't
// match their classes' namespaces.
$files = [
__DIR__ . '/AcsfConfigUnitTest.inc',
__DIR__ . '/AcsfConfigUnitTestMissingPassword.inc',
__DIR__ . '/AcsfConfigUnitTestMissingUrl.inc',
__DIR__ . '/AcsfConfigUnitTestMissingUsername.inc',
__DIR__ . '/AcsfConfigUnitTestIncompatible.inc',
__DIR__ . '/AcsfMessageUnitTestSuccess.inc',
__DIR__ . '/AcsfMessageUnitTestFailure.inc',
__DIR__ . '/AcsfMessageUnitTestFailureException.inc',
__DIR__ . '/AcsfMessageUnitTestMissingEndpoint.inc',
__DIR__ . '/AcsfMessageUnitTestMissingResponse.inc',
__DIR__ . '/AcsfMessageResponseUnitTest.inc',
];
foreach ($files as $file) {
// Acquia rules disallow 'include/require' with dynamic arguments.
// phpcs:disable
require_once $file;
// phpcs:enable
}
}