-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aeae35a
commit a3ad5d8
Showing
5 changed files
with
157 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Foxy package. | ||
* | ||
* (c) François Pluchino <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Foxy\Tests\Asset; | ||
|
||
use Foxy\Asset\YarnManager; | ||
|
||
/** | ||
* Yarn Next asset manager tests. | ||
* | ||
* @author François Pluchino <[email protected]> | ||
* | ||
* @internal | ||
*/ | ||
final class YarnNextAssetManagerTest extends AbstractAssetManagerTest | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function actionForTestRunForInstallCommand($action) | ||
{ | ||
$this->executor->addExpectedValues(0, '2.0.0'); | ||
|
||
if ('update' === $action) { | ||
$this->executor->addExpectedValues(0, '2.0.0'); | ||
} | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected function getManager() | ||
{ | ||
return new YarnManager($this->io, $this->config, $this->executor, $this->fs, $this->fallback); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected function getValidName() | ||
{ | ||
return 'yarn'; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected function getValidLockPackageName() | ||
{ | ||
return 'yarn.lock'; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected function getValidVersionCommand() | ||
{ | ||
return 'yarn --version'; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected function getValidInstallCommand() | ||
{ | ||
return 'yarn install'; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected function getValidUpdateCommand() | ||
{ | ||
return 'yarn up'; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected function actionForTestAddDependenciesForUpdateCommand() | ||
{ | ||
$this->executor->addExpectedValues(0, '2.0.0'); | ||
$this->executor->addExpectedValues(0, 'CHECK OUTPUT'); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.