You are here

public function CacheFlushUICRUD::fieldRequiring in CacheFlush 8

Check if form requring is working on title field.

1 call to CacheFlushUICRUD::fieldRequiring()
CacheFlushUICRUD::testCrud in modules/cacheflush_ui/tests/src/Functional/CacheFlushUICRUD.php
Run CRUD test functions.

File

modules/cacheflush_ui/tests/src/Functional/CacheFlushUICRUD.php, line 127

Class

CacheFlushUICRUD
Test the UI CRUD.

Namespace

Drupal\Tests\cacheflush_ui\Functional

Code

public function fieldRequiring() {
  $this
    ->drupalPostForm('admin/structure/cacheflush/add', [], t('Save'));
  $this
    ->assertResponse(200);
  $this
    ->assertRaw('error');
}