You are here

public function MergeYamlCommandTest::testMergeYamlCommand in Database Sanitize 7

Tests setting up the plugin correctly.

File

vendor/edisonlabs/merge-yaml/tests/src/Unit/MergeYamlCommandTest.php, line 70

Class

MergeYamlCommandTest
Tests for EdisonLabs\MergeYaml\MergeYamlCommand

Namespace

EdisonLabs\MergeYaml\Unit

Code

public function testMergeYamlCommand() {
  $mergeYamlCommand = new MergeYamlCommand();
  $this
    ->assertEquals('merge-yaml', $mergeYamlCommand
    ->getName());
  $this
    ->assertEquals('Merge yaml files.', $mergeYamlCommand
    ->getDescription());
  $composer = new Composer();
  $composer
    ->setPackage($this->packageMock);
  $mergeYamlCommand
    ->setComposer($composer);
  $mergeYamlCommand
    ->execute($this->inputMock, $this->outputMock, $this->defaultConfig);
  $this
    ->assertFileExists('/tmp/merge-yaml/test.merge.yml');
}