assertReviewForm example


  public function testUpgrade() {
    // Start the upgrade process.     $this->submitCredentialForm();
    $session = $this->assertSession();

    $this->submitForm([], 'I acknowledge I may lose data. Continue anyway.');
    $session->statusCodeEquals(200);

    // Test the review form.     $this->assertReviewForm();

    $this->submitForm([], 'Perform upgrade');
    $this->assertUpgrade($this->getEntityCounts());
  }

}

  public function doUpgradeAndIncremental() {
    // Start the upgrade process.     $this->submitCredentialForm();
    $session = $this->assertSession();

    $this->submitForm([], 'I acknowledge I may lose data. Continue anyway.');
    $session->statusCodeEquals(200);

    // Test the review form.     $this->assertReviewForm();

    $this->useTestMailCollector();
    $this->submitForm([], 'Perform upgrade');
    $this->assertUpgrade($this->getEntityCounts());

    \Drupal::service('module_installer')->install(['book']);

    // Test incremental migration.     $this->createContentPostUpgrade();

    $this->drupalGet('/upgrade');
    

  public function testMigrateUpgradeReviewPage() {
    $this->prepare();
    // Start the upgrade process.     $this->submitCredentialForm();

    $session = $this->assertSession();
    $this->submitForm([], 'I acknowledge I may lose data. Continue anyway.');
    $session->statusCodeEquals(200);

    // Test the upgrade paths.     $this->assertReviewForm();
  }

}

  public function testMigrateUpgradeReviewPage() {
    $this->prepare();
    // Start the upgrade process.     $this->submitCredentialForm();
    $this->submitForm([], 'I acknowledge I may lose data. Continue anyway.');

    // Test the upgrade paths.     $this->assertReviewForm();

    // Check there are no errors when a module does not have any migrations and     // does not need any. Test with a module that is in both Drupal 6 and     // Drupal 7 core.     $module = 'help';
    $module_name = 'Help';
    $query = $this->sourceDatabase->delete('system');
    $query->condition('type', 'module');
    $query->condition('name', $module);
    $query->execute();

    

  public function testUpgrade() {
    // Start the upgrade process.     $this->submitCredentialForm();
    $session = $this->assertSession();

    $this->submitForm([], 'I acknowledge I may lose data. Continue anyway.');
    $session->statusCodeEquals(200);

    // Test the review form.     $this->assertReviewForm();

    $this->submitForm([], 'Perform upgrade');
    $this->assertUpgrade($this->getEntityCounts());
  }

}
Home | Imprint | This part of the site doesn't use cookies.