You are here

public function CacheFlushCronUI::addForm in CacheFlush 8

Add form test.

File

modules/cacheflush_cron/tests/src/Functional/CacheFlushCronUI.php, line 51

Class

CacheFlushCronUI
Test cacheflush Cron UI.

Namespace

Drupal\Tests\cacheflush_cron\Functional

Code

public function addForm() {
  $this
    ->drupalGet('admin/structure/cacheflush/add');
  $this
    ->assertResponse(200);
  $this
    ->assertFieldByName('cron');
  $this
    ->assertRaw(t('Enable cron job for this preset.'));
  $this
    ->assertNoLink(t('EDIT'));
}