pmReleaseNotesTest.php

  1. 8.0.x tests/pmReleaseNotesTest.php
  2. 6.x tests/pmReleaseNotesTest.php
  3. 7.x tests/pmReleaseNotesTest.php
  4. 5.x tests/pmReleaseNotesTest.php
  5. master tests/pmReleaseNotesTest.php

Classes

Namesort ascending Description
pmReleaseNotesCase @group pm

File

tests/pmReleaseNotesTest.php
View source
  1. <?php
  2. /**
  3. * @group pm
  4. */
  5. class pmReleaseNotesCase extends Drush_CommandTestCase {
  6. /**
  7. * Tests for pm-releasenotes command.
  8. */
  9. public function testReleaseNotes() {
  10. $this->drush('pm-releasenotes', array('drupal-7.1'));
  11. $output = $this->getOutput();
  12. $expected = <<< EXPECTED
  13. ------------------------------------------------------------------------------
  14. > RELEASE NOTES FOR 'DRUPAL' PROJECT, VERSION 7.1:
  15. > Last updated: May 25, 2011 - 20:21 .
  16. > Security
  17. ------------------------------------------------------------------------------
  18. EXPECTED;
  19. $this->assertContains($expected, $output, 'Header is fine.');
  20. $this->assertContains('SA-CORE-2011-001 - Drupal core - Multiple vulnerabilities', $output, 'Release notes includes SA reference.');
  21. }
  22. }