You are here

public function ComposerDependencyTest::testDependenciesUnmet in CloudFlare 8

Test posting an invalid host to the form.

File

tests/src/Functional/ComposerDependencyTest.php, line 45

Class

ComposerDependencyTest
Tests \Drupal\cloudflare\Form\SettingsForm.

Namespace

Drupal\Tests\cloudflare\Functional

Code

public function testDependenciesUnmet() {
  ComposerDependenciesCheckMock::mockComposerDependenciesMet(FALSE);
  $this
    ->drupalGet($this->route);
  $this
    ->assertSession()
    ->responseContains('Missing Composer dependencies for CloudFlare');
}