You are here

public function AssetCRUDTest::testFieldsVisibility in farmOS 2.x

Fields are displayed correctly.

File

modules/core/asset/tests/src/Functional/AssetCRUDTest.php, line 20

Class

AssetCRUDTest
Tests the asset CRUD.

Namespace

Drupal\Tests\asset\Functional

Code

public function testFieldsVisibility() {
  $this
    ->drupalGet('asset/add/default');
  $assert_session = $this
    ->assertSession();
  $assert_session
    ->statusCodeEquals(200);
  $assert_session
    ->fieldExists('name[0][value]');
  $assert_session
    ->fieldExists('status');
  $assert_session
    ->fieldExists('revision_log_message[0][value]');
  $assert_session
    ->fieldExists('uid[0][target_id]');
  $assert_session
    ->fieldExists('created[0][value][date]');
  $assert_session
    ->fieldExists('created[0][value][time]');
}