transfer depuis gogs
This commit is contained in:
40
tests/functional/Grav/Console/DirectInstallCommandTest.php
Normal file
40
tests/functional/Grav/Console/DirectInstallCommandTest.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
use Codeception\Util\Fixtures;
|
||||
use Grav\Common\Grav;
|
||||
use Grav\Console\Gpm\DirectInstallCommand;
|
||||
|
||||
|
||||
/**
|
||||
* Class DirectInstallCommandTest
|
||||
*/
|
||||
class DirectInstallCommandTest extends \Codeception\TestCase\Test
|
||||
{
|
||||
/** @var Grav $grav */
|
||||
protected $grav;
|
||||
|
||||
/** @var DirectInstallCommand */
|
||||
protected $directInstall;
|
||||
|
||||
|
||||
protected function _before()
|
||||
{
|
||||
$this->grav = Fixtures::get('grav');
|
||||
$this->directInstallCommand = new DirectInstallCommand();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Why this test file is empty
|
||||
*
|
||||
* Wasn't able to call a symfony\console. Kept having $output problem.
|
||||
* symfony console \NullOutput didn't cut it.
|
||||
*
|
||||
* We would also need to Mock tests since downloading packages would
|
||||
* make tests slow and unreliable. But it's not worth the time ATM.
|
||||
*
|
||||
* Look at Gpm/InstallCommandTest.php
|
||||
*
|
||||
* For the full story: https://git.io/vSlI3
|
||||
*/
|
2
tests/functional/_bootstrap.php
Normal file
2
tests/functional/_bootstrap.php
Normal file
@@ -0,0 +1,2 @@
|
||||
<?php
|
||||
// Here you can initialize variables that will be available to your tests
|
Reference in New Issue
Block a user