public function LogCRUDTest::testEditLog in Log entity 2.x
Edit log entity.
File
- tests/
src/ Functional/ LogCRUDTest.php, line 79
Class
- LogCRUDTest
- Tests the Log CRUD.
Namespace
Drupal\Tests\log\FunctionalCode
public function testEditLog() {
$log = $this
->createLogEntity();
$log
->save();
$edit = [
'name[0][value]' => $this
->randomMachineName(),
];
$this
->drupalPostForm($log
->toUrl('edit-form'), $edit, $this
->t('Save'));
$this
->assertText($edit['name[0][value]']);
}