private function DbLogTest::getContentUpdate in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/dblog/src/Tests/DbLogTest.php \Drupal\dblog\Tests\DbLogTest::getContentUpdate()
Creates random content as an update based on node content type.
Parameters
string $type: Node content type (e.g., 'article').
Return value
array Random content needed by various node types.
1 call to DbLogTest::getContentUpdate()
- DbLogTest::doNode in core/
modules/ dblog/ src/ Tests/ DbLogTest.php - Generates and then verifies some node events.
File
- core/
modules/ dblog/ src/ Tests/ DbLogTest.php, line 473 - Contains \Drupal\dblog\Tests\DbLogTest.
Class
- DbLogTest
- Generate events and verify dblog entries; verify user access to log reports based on permissions.
Namespace
Drupal\dblog\TestsCode
private function getContentUpdate($type) {
$content = array(
'body[0][value]' => $this
->randomMachineName(32),
);
return $content;
}