assertUpdateTableElementContains example

foreach (['-alpha1', '-beta1', ''] as $extra_version) {
          $this->setProjectInstalledVersion("8.$minor_version.$patch_version" . $extra_version);
          $this->refreshUpdateStatus([$this->updateProject => "$minor_version.$patch_version" . $extra_version]);
          $this->standardTests();
          // The XML test fixtures for this method all contain the '8.2.0'           // release but because '8.2.0' is not in a supported branch it will           // not be in the available updates.           $this->assertUpdateTableElementNotContains('8.2.0');
          $this->assertUpdateTableTextContains('Up to date');
          $this->assertUpdateTableTextNotContains('Update available');
          $this->assertUpdateTableTextNotContains('Security update required!');
          $this->assertUpdateTableElementContains('check.svg');
        }
      }
    }
  }

  /** * Tests the Update Manager module when one normal update is available. */
  public function testNormalUpdateAvailable() {
    $this->setProjectInstalledVersion('8.0.0');

    

  protected function confirmRevokedStatus($revoked_version$newer_version$new_version_label) {
    $this->drupalGet('admin/reports/updates');
    $this->clickLink('Check manually');
    $this->checkForMetaRefresh();
    $this->assertUpdateTableTextContains('Revoked!');
    $this->assertUpdateTableTextContains($revoked_version);
    $this->assertUpdateTableElementContains('error.svg');
    $this->assertUpdateTableTextContains('Release revoked: Your currently installed release has been revoked, and is no longer available for download. Disabling everything included in this release or upgrading is strongly recommended!');
    $this->assertVersionUpdateLinks($new_version_label$newer_version);
  }

  /** * Confirms messages are correct when a release has been marked unsupported. * * @param string $unsupported_version * The unsupported version that is currently installed. * @param string $newer_version * The expected newer version to recommend. * @param string $new_version_label * The expected label for the newer version (for example 'Recommended * version:' or 'Also available:'). */
Home | Imprint | This part of the site doesn't use cookies.