public static function ZoneMock::mockAssertValidCredentials in CloudFlare 8
Tells the mock to assert if credentials are valid or not.
Parameters
bool $assert_valid_credentials: TRUE to mock credentials are met. FALSE otherwise.
8 calls to ZoneMock::mockAssertValidCredentials()
- CloudFlareAdminSettingsFormTest::setUp in tests/
src/ Functional/ CloudFlareAdminSettingsFormTest.php - Setup the test.
- CloudFlareAdminSettingsFormTest::testInvalidBypassHostWithHttp in tests/
src/ Functional/ CloudFlareAdminSettingsFormTest.php - Test posting an invalid host with http protocol to the form.
- CloudFlareAdminSettingsFormTest::testInvalidBypassHostWithHttps in tests/
src/ Functional/ CloudFlareAdminSettingsFormTest.php - Test posting an invalid host with https protocol to the form.
- CloudFlareAdminSettingsFormTest::testMultiZoneSelection in tests/
src/ Functional/ CloudFlareAdminSettingsFormTest.php - Test posting an invalid host to the form.
- CloudFlareAdminSettingsInvalidFormTest::testInvalidCredentials in tests/
src/ Functional/ CloudFlareAdminSettingsInvalidFormTest.php - Test posting an invalid host to the form.
File
- tests/
modules/ cloudflare_form_tester/ src/ Mocks/ ZoneMock.php, line 204
Class
- ZoneMock
- Zone methods for CloudFlare.
Namespace
Drupal\cloudflare_form_tester\MocksCode
public static function mockAssertValidCredentials($assert_valid_credentials) {
\Drupal::state()
->set('cloudflaretesting.assetValidCredentials', $assert_valid_credentials);
}