Initial Drupal 11 with DDEV setup
This commit is contained in:
36
vendor/consolidation/site-process/tests/Transport/VagrantTransportTest.php
vendored
Normal file
36
vendor/consolidation/site-process/tests/Transport/VagrantTransportTest.php
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Consolidation\SiteProcess;
|
||||
|
||||
use Consolidation\SiteProcess\Transport\VagrantTransport;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Consolidation\SiteAlias\SiteAlias;
|
||||
|
||||
class VagrantTransportTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* Data provider for testWrap.
|
||||
*/
|
||||
public function wrapTestValues()
|
||||
{
|
||||
return [
|
||||
[
|
||||
'vagrant ssh -c ls',
|
||||
[
|
||||
'vagrant' => []
|
||||
],
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider wrapTestValues
|
||||
*/
|
||||
public function testWrap($expected, $siteAliasData)
|
||||
{
|
||||
$siteAlias = new SiteAlias($siteAliasData, '@alias.dev');
|
||||
$dockerTransport = new VagrantTransport($siteAlias);
|
||||
$actual = $dockerTransport->wrap(['ls']);
|
||||
$this->assertEquals($expected, implode(' ', $actual));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user