public static function ZoneMock::mockMultiZoneAccount in CloudFlare 8
Tells the mock to return multiple zones.
Parameters
bool $multi_zone: TRUE to mock multipleZones. FALSE for singlezone.
1 call to ZoneMock::mockMultiZoneAccount()
- CloudFlareAdminSettingsFormTest::testMultiZoneSelection in tests/
src/ Functional/ CloudFlareAdminSettingsFormTest.php - Test posting an invalid host to the form.
File
- tests/
modules/ cloudflare_form_tester/ src/ Mocks/ ZoneMock.php, line 214
Class
- ZoneMock
- Zone methods for CloudFlare.
Namespace
Drupal\cloudflare_form_tester\MocksCode
public static function mockMultiZoneAccount($multi_zone) {
\Drupal::state()
->set('cloudflaretesting.multizone', $multi_zone);
}