You are here

public function LogCRUDTest::testEditLog in Log entity 8

Edit log entity.

File

src/Tests/LogCRUDTest.php, line 76

Class

LogCRUDTest
Tests the Log CRUD.

Namespace

Drupal\log\Tests

Code

public function testEditLog() {
  $log = $this
    ->createLogEntity();
  $log
    ->save();
  $edit = [
    'name[0][value]' => $this
      ->randomMachineName(),
  ];
  $this
    ->drupalPostForm($log
    ->toUrl('edit-form'), $edit, t('Save'));
  $this
    ->assertRaw(t('Saved the %label Log.', [
    '%label' => $edit['name[0][value]'],
  ]));
  $this
    ->assertText($edit['name[0][value]']);
}