public function ComposerDependenciesCheckMock::assert in CloudFlare 8
Asserts that composer dependencies for CloudFlare are met.
Throws
\Drupal\cloudflare\Exception\ComposerDependencyException Exception thrown if composer dependencies are met.
Overrides CloudFlareComposerDependenciesCheckInterface::assert
File
- tests/
modules/ cloudflare_form_tester/ src/ Mocks/ ComposerDependenciesCheckMock.php, line 63
Class
- ComposerDependenciesCheckMock
- Tests that composer dependencies are met.
Namespace
Drupal\cloudflare_form_tester\MocksCode
public function assert() {
if (!$this
->check()) {
throw new ComposerDependencyException(self::ERROR_MESSAGE);
}
}