Skip to content

Commit

Permalink
[MonorepoBuilder] Improve dependency merger test
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jun 15, 2019
1 parent abe32cc commit a0b6ece
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
13 changes: 11 additions & 2 deletions tests/DependenciesMerger/DependenciesMergerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,17 @@ public function test(): void
'symfony/dependency-injection' => '^4.1',
],
'repositories' => [
'type' => 'vcs',
'url' => 'https://github.com/molaux/PostgreSearchBundle.git',
[
'type' => 'vcs',
'url' => 'https://github.com/molaux/PostgreSearchBundle.git',
],
[
'options' => [
'symlink' => false
],
'type' => 'path',
'url' => './../packages/*'
]
],
], __DIR__ . '/Source/root.json');

Expand Down
17 changes: 13 additions & 4 deletions tests/DependenciesMerger/Source/expected-root.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,17 @@
"Some\\": "some"
}
},
"repositories": {
"type": "vcs",
"url": "https://github.com/molaux/PostgreSearchBundle.git"
}
"repositories": [
{
"type": "vcs",
"url": "https://github.com/molaux/PostgreSearchBundle.git"
},
{
"options": {
"symlink": false
},
"type": "path",
"url": "./../packages/*"
}
]
}
1 change: 0 additions & 1 deletion tests/DevMasterAliasUpdater/DevMasterAliasUpdaterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ protected function setUp(): void
$this->bootKernel(MonorepoBuilderKernel::class);

$this->devMasterAliasUpdater = self::$container->get(DevMasterAliasUpdater::class);
$this->devMasterAliasUpdater = self::$container->get(DevMasterAliasUpdater::class);
}

protected function tearDown(): void
Expand Down

0 comments on commit a0b6ece

Please sign in to comment.