DirectInstallCommandTest.php 880 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. use Codeception\Util\Fixtures;
  3. use Grav\Common\Grav;
  4. use Grav\Console\Gpm\DirectInstallCommand;
  5. /**
  6. * Class DirectInstallCommandTest
  7. */
  8. class DirectInstallCommandTest extends \Codeception\TestCase\Test
  9. {
  10. /** @var Grav $grav */
  11. protected $grav;
  12. /** @var DirectInstallCommand */
  13. protected $directInstall;
  14. protected function _before()
  15. {
  16. $this->grav = Fixtures::get('grav');
  17. $this->directInstallCommand = new DirectInstallCommand();
  18. }
  19. }
  20. /**
  21. * Why this test file is empty
  22. *
  23. * Wasn't able to call a symfony\console. Kept having $output problem.
  24. * symfony console \NullOutput didn't cut it.
  25. *
  26. * We would also need to Mock tests since downloading packages would
  27. * make tests slow and unreliable. But it's not worth the time ATM.
  28. *
  29. * Look at Gpm/InstallCommandTest.php
  30. *
  31. * For the full story: https://git.io/vSlI3
  32. */