Version 1
[yaffs-website] / vendor / drush / drush / tests / pmReleaseNotesTest.php
diff --git a/vendor/drush/drush/tests/pmReleaseNotesTest.php b/vendor/drush/drush/tests/pmReleaseNotesTest.php
new file mode 100644 (file)
index 0000000..5182916
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+namespace Unish;
+
+/**
+  * @group pm
+  */
+class pmReleaseNotesCase extends CommandUnishTestCase {
+
+  /**
+   * Tests for pm-releasenotes command.
+   */
+  public function testReleaseNotes() {
+    $this->drush('pm-releasenotes', array('drupal-7.1'));
+    $output = $this->getOutput();
+    $this->assertContains("RELEASE NOTES FOR 'DRUPAL' PROJECT, VERSION 7.1", $output);
+    $this->assertContains('Last updated:  25 May 2011 at 20:59 UTC.', $output);
+    $this->assertContains('SA-CORE-2011-001 - Drupal core - Multiple vulnerabilities', $output);
+  }
+}
+