workbench_moderation_migrate-1.0.0-alpha4/tests/fixtures/wm-drupal7/node.php
tests/fixtures/wm-drupal7/node.php
<?php
// phpcs:ignoreFile
/**
* @file
* A database agnostic dump for testing purposes.
*
* This file was generated by the Drupal 9.2.7 db-tools.php script.
*/
use Drupal\Core\Database\Database;
$connection = Database::getConnection();
$connection->schema()->createTable('node', array(
'fields' => array(
'nid' => array(
'type' => 'serial',
'not null' => TRUE,
'size' => 'normal',
'unsigned' => TRUE,
),
'vid' => array(
'type' => 'int',
'not null' => FALSE,
'size' => 'normal',
'unsigned' => TRUE,
),
'type' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '32',
'default' => '',
),
'language' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '12',
'default' => '',
),
'title' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '255',
'default' => '',
),
'uid' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'default' => '0',
),
'status' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'default' => '1',
),
'created' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'default' => '0',
),
'changed' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'default' => '0',
),
'comment' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'default' => '0',
),
'promote' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'default' => '0',
),
'sticky' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'default' => '0',
),
'tnid' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'default' => '0',
'unsigned' => TRUE,
),
'translate' => array(
'type' => 'int',
'not null' => TRUE,
'size' => 'normal',
'default' => '0',
),
),
'primary key' => array(
'nid',
),
'unique keys' => array(
'vid' => array(
'vid',
),
),
'indexes' => array(
'node_changed' => array(
'changed',
),
'node_created' => array(
'created',
),
'node_frontpage' => array(
'promote',
'status',
'sticky',
'created',
),
'node_status_type' => array(
'status',
'type',
'nid',
),
'node_title_type' => array(
'title',
array(
'type',
'4',
),
),
'node_type' => array(
array(
'type',
'4',
),
),
'uid' => array(
'uid',
),
'tnid' => array(
'tnid',
),
'translate' => array(
'translate',
),
'language' => array(
'language',
),
),
'mysql_character_set' => 'utf8',
));
$connection->insert('node')
->fields(array(
'nid',
'vid',
'type',
'language',
'title',
'uid',
'status',
'created',
'changed',
'comment',
'promote',
'sticky',
'tnid',
'translate',
))
->values(array(
'nid' => '1',
'vid' => '112',
'type' => 'page',
'language' => 'und',
'title' => 'Published node with multiple states (279706) published version was edited and kept published (this is restored in revision 112) [3]',
'uid' => '1',
'status' => '1',
'created' => '1634048858',
'changed' => '1634049056',
'comment' => '0',
'promote' => '0',
'sticky' => '0',
'tnid' => '0',
'translate' => '0',
))
->values(array(
'nid' => '2',
'vid' => '204',
'type' => 'page',
'language' => 'und',
'title' => 'Never ever published node (280856) initial draft sent to review again [5]',
'uid' => '1',
'status' => '0',
'created' => '1634049454',
'changed' => '1634049538',
'comment' => '0',
'promote' => '0',
'sticky' => '0',
'tnid' => '0',
'translate' => '0',
))
->values(array(
'nid' => '3',
'vid' => '305',
'type' => 'page',
'language' => 'und',
'title' => 'Node with forward revision (beginning of 263651) initially saved as published [1]',
'uid' => '1',
'status' => '1',
'created' => '1634050731',
'changed' => '1634050760',
'comment' => '0',
'promote' => '0',
'sticky' => '0',
'tnid' => '0',
'translate' => '0',
))
->values(array(
'nid' => '4',
'vid' => '404',
'type' => 'page',
'language' => 'und',
'title' => 'Unpublished node which was published before (270401) initial reviewed and published (review sets back to review on moderation tab) [2,3]',
'uid' => '1',
'status' => '0',
'created' => '1634050903',
'changed' => '1634051021',
'comment' => '0',
'promote' => '0',
'sticky' => '0',
'tnid' => '0',
'translate' => '0',
))
->values(array(
'nid' => '5',
'vid' => '515',
'type' => 'news',
'language' => 'und',
'title' => 'Node with multiple published revisions (279026) published version was edited and kept published [10]',
'uid' => '1',
'status' => '1',
'created' => '1634129105',
'changed' => '1634135186',
'comment' => '0',
'promote' => '0',
'sticky' => '0',
'tnid' => '0',
'translate' => '0',
))
->execute();
