private function 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 drupal/core/modules/dblog/lib/Drupal/dblog/Tests/DbLogTest.php
Generates and then verifies some node events.

File

drupal/core/modules/dblog/lib/Drupal/dblog/Tests/DbLogTest.php, line 401
Contains \Drupal\dblog\Tests\DbLogTest.

Class

DbLogTest
Tests logging messages to the database.

Namespace

Drupal\dblog\Tests

Code

private function getContentUpdate($type) {
  $langcode = Language::LANGCODE_NOT_SPECIFIED;
  $content = array(
    "body[{$langcode}][0][value]" => $this
      ->randomName(32),
  );
  return $content;
}