DevelDrushTest.php 530 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Drupal\Tests\devel\Unish;
  3. use Unish\CommandUnishTestCase;
  4. /**
  5. * @group devel
  6. * @group commands
  7. */
  8. class DevelDrushTest extends CommandUnishTestCase {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. protected function setUp() {
  13. $this->setUpDrupal(1, true);
  14. $this->drush('pm:enable', ['devel']);
  15. }
  16. /**
  17. * Test devel:services command.
  18. */
  19. public function testServices() {
  20. $this->drush('devel:services');
  21. $output = $this->getOutput();
  22. $this->assertContains('account_switcher', $output);
  23. }
  24. }