function DbLogTest::getContentUpdate
Same name in other branches
- 9 core/modules/dblog/tests/src/Functional/DbLogTest.php \Drupal\Tests\dblog\Functional\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/ tests/ src/ Functional/ DbLogTest.php - Generates and then verifies some node events.
File
-
core/
modules/ dblog/ tests/ src/ Functional/ DbLogTest.php, line 589
Class
- DbLogTest
- Generate events and verify dblog entries; verify user access to log reports based on permissions.
Namespace
Drupal\Tests\dblog\FunctionalCode
private function getContentUpdate($type) {
$content = [
'body[0][value]' => $this->randomMachineName(32),
];
return $content;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.