public function ComposerDependenciesCheckMock::check in CloudFlare 8
Tests that composer dependencies for CloudFlare are met.
Return value
bool TRUE if composer dependencies are met. FALSE otherwise.
Overrides CloudFlareComposerDependenciesCheckInterface::check
1 call to ComposerDependenciesCheckMock::check()
- ComposerDependenciesCheckMock::assert in tests/
modules/ cloudflare_form_tester/ src/ Mocks/ ComposerDependenciesCheckMock.php - Asserts that composer dependencies for CloudFlare are met.
File
- tests/
modules/ cloudflare_form_tester/ src/ Mocks/ ComposerDependenciesCheckMock.php, line 50
Class
- ComposerDependenciesCheckMock
- Tests that composer dependencies are met.
Namespace
Drupal\cloudflare_form_tester\MocksCode
public function check() {
$are_dependencies_met = \Drupal::state()
->get('cloudflaretesting.assertComposerDependenciesMet');
if (!$are_dependencies_met) {
$this->logger
->critical(self::ERROR_MESSAGE);
}
return $are_dependencies_met;
}