public function pmReleaseNotesCase::testReleaseNotes

8.0.x pmReleaseNotesTest.php public pmReleaseNotesCase::testReleaseNotes()
6.x pmReleaseNotesTest.php public pmReleaseNotesCase::testReleaseNotes()
7.x pmReleaseNotesTest.php public pmReleaseNotesCase::testReleaseNotes()
5.x pmReleaseNotesTest.php public pmReleaseNotesCase::testReleaseNotes()
master pmReleaseNotesTest.php public pmReleaseNotesCase::testReleaseNotes()

Tests for pm-releasenotes command.

File

tests/pmReleaseNotesTest.php, line 11

Class

pmReleaseNotesCase
@group pm

Code

public function testReleaseNotes() {
  $this->drush('pm-releasenotes', array('drupal-7.1'));
  $output = $this->getOutput();
  $expected = <<< EXPECTED
------------------------------------------------------------------------------
> RELEASE NOTES FOR 'DRUPAL' PROJECT, VERSION 7.1:
> Last updated: May 25, 2011 - 20:21 .
> Security
------------------------------------------------------------------------------
EXPECTED;
  $this->assertContains($expected, $output, 'Header is fine.');
  $this->assertContains('SA-CORE-2011-001 - Drupal core - Multiple vulnerabilities', $output, 'Release notes includes SA reference.');
}