DirectInstallCommandTest.php 884 B

1234567891011121314151617181920212223242526272829303132333435363738
  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(): void
  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. */