Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / drush / drush / tests / WatchdogTest.php
diff --git a/vendor/drush/drush/tests/WatchdogTest.php b/vendor/drush/drush/tests/WatchdogTest.php
deleted file mode 100644 (file)
index 2e07ad8..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-namespace Unish;
-
-/**
- * @group commands
- */
-class WatchdogCase extends CommandUnishTestCase
-{
-
-    public function testWatchdog()
-    {
-        $this->setUpDrupal(1, true);
-        $this->drush('pm-enable', ['dblog']);
-
-        $eval1 = "\\Drupal::logger('drush')->notice('Unish rocks.');";
-        $this->drush('php-eval', [$eval1]);
-        $this->drush('watchdog-show', [], ['count' => 50]);
-        $output = $this->getOutput();
-        $this->assertContains('Unish rocks.', $output);
-
-        // Add a new entry with a long message with the letter 'd' and verify that watchdog-show does
-        // not print it completely in the listing unless --full is given.
-        // As the output is formatted so lines may be splitted, assertContains does not work
-        // in this scenario. Therefore, we will count the number of times a character is present.
-        $message_chars = 300;
-        $char = '*';
-        $message = str_repeat($char, $message_chars);
-        $eval2 = "\\Drupal::logger('drush')->notice('$message');";
-        $this->drush('php-eval', [$eval2]);
-        $this->drush('watchdog-show');
-        $output = $this->getOutput();
-        $this->assertGreaterThan(substr_count($output, $char), $message_chars);
-        $this->drush('watchdog-show', [], ['extended' => null]);
-        $output = $this->getOutput();
-        $this->assertGreaterThanOrEqual($message_chars, substr_count($output, $char));
-
-        // Tests message deletion
-        $this->drush('watchdog-delete', ['all']);
-        $output = $this->getOutput();
-        $this->drush('watchdog-show');
-        $output = $this->getOutput();
-        $this->assertEmpty($output);
-    }
-}