You are here

public function LogCRUDTest::testFieldsVisibility in Log entity 2.x

Fields are displayed correctly.

File

tests/src/Functional/LogCRUDTest.php, line 19

Class

LogCRUDTest
Tests the Log CRUD.

Namespace

Drupal\Tests\log\Functional

Code

public function testFieldsVisibility() {
  $this
    ->drupalGet('log/add/default');
  $this
    ->assertResponse('200');
  $assert_session = $this
    ->assertSession();
  $assert_session
    ->fieldExists('name[0][value]');
  $assert_session
    ->fieldExists('timestamp[0][value][date]');
  $assert_session
    ->fieldExists('timestamp[0][value][time]');
  $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]');
}