expectedNodeFieldRevisionTable example

/** * Tests the complete node migration. */
  public function testNodeCompleteMigration() {
    // Confirm there are only complete node migration map tables. This shows     // that only the complete migration ran.     $results = $this->nodeMigrateMapTableCount('7');
    $this->assertSame(0, $results['node']);
    $this->assertSame(8, $results['node_complete']);

    $db = \Drupal::database();
    $this->assertEquals($this->expectedNodeFieldRevisionTable()$db->select('node_field_revision', 'nr')
      ->fields('nr')
      ->orderBy('vid')
      ->orderBy('langcode')
      ->execute()
      ->fetchAll(\PDO::FETCH_ASSOC));
    $this->assertEquals($this->expectedNodeFieldDataTable()$db->select('node_field_data', 'nr')
      ->fields('nr')
      ->orderBy('nid')
      ->orderBy('vid')
      ->orderBy('langcode')
      ->execute()
      
'language',
      'd6_language_content_settings',
      'd6_node_complete',
    ]);
  }

  /** * Tests the complete node migration. */
  public function testNodeCompleteMigration() {
    $db = \Drupal::database();
    $this->assertEquals($this->expectedNodeFieldRevisionTable()$db->select('node_field_revision', 'nr')
      ->fields('nr')
      ->orderBy('vid')
      ->orderBy('langcode')
      ->execute()
      ->fetchAll(\PDO::FETCH_ASSOC));
    $this->assertEquals($this->expectedNodeFieldDataTable()$db->select('node_field_data', 'nr')
      ->fields('nr')
      ->orderBy('nid')
      ->orderBy('vid')
      ->orderBy('langcode')
      ->execute()
      
Home | Imprint | This part of the site doesn't use cookies.