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

Namespace

Unish

Classes

Namesort descending Description
pmReleaseNotesCase @group pm

File

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