Skip to content

Commit a24222c

Browse files
committed
Also test the new Project\Config resource
1 parent f4fa2c6 commit a24222c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/ResourceGeneratorTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ public function testOutput()
4545
$getopt = Phake::mock(Context\Getopt::class);
4646
Phake::when($getopt)->get(1)->thenReturn($yamlPath . 'project.yaml');
4747
Phake::when($getopt)->get(2)->thenReturn($yamlPath . 'project-build.yaml');
48-
Phake::when($getopt)->get(3)->thenReturn($this->temporaryDirectory);
49-
Phake::when($getopt)->get(4)->thenReturn(null);
48+
Phake::when($getopt)->get(3)->thenReturn($yamlPath . 'project-config.yaml');
49+
Phake::when($getopt)->get(4)->thenReturn($this->temporaryDirectory);
50+
Phake::when($getopt)->get(5)->thenReturn(null);
5051
Phake::when($context)->getopt([])->thenReturn($getopt);
5152
(new ResourceGenerator($context, $stdio))->run();
5253
$objects = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($resourcesPath), RecursiveIteratorIterator::SELF_FIRST);

0 commit comments

Comments
 (0)