config_update_ui.drush_testing.inc 466 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * @file
  4. * Defines stubs for Drush functions and constants so tests can run.
  5. *
  6. * @see \Drupal\config_update_ui\Tests\ConfigUpdateTest
  7. */
  8. if (!function_exists('drush_print')) {
  9. /**
  10. * Stub for drush_print() function for testing.
  11. */
  12. function drush_print() {
  13. }
  14. }
  15. if (!function_exists('dt')) {
  16. /**
  17. * Stub for dt() function for testing.
  18. */
  19. function dt($text) {
  20. return $text;
  21. }
  22. }
  23. defined('STDERR') or define('STDERR', 25);