@@ -27,13 +27,15 @@ final class ComposerJsonTest extends TestCase
2727{
2828 private array $ devComposer ;
2929 private array $ frameworkComposer ;
30+ private array $ starterComposer ;
3031
3132 protected function setUp (): void
3233 {
3334 parent ::setUp ();
3435
3536 $ this ->devComposer = $ this ->getComposerJson (dirname (__DIR__ , 3 ) . '/composer.json ' );
3637 $ this ->frameworkComposer = $ this ->getComposerJson (dirname (__DIR__ , 3 ) . '/admin/framework/composer.json ' );
38+ $ this ->starterComposer = $ this ->getComposerJson (dirname (__DIR__ , 3 ) . '/admin/starter/composer.json ' );
3739 }
3840
3941 public function testFrameworkRequireIsTheSameWithDevRequire (): void
@@ -77,6 +79,33 @@ public function testFrameworkSuggestIsTheSameWithDevSuggest(): void
7779 );
7880 }
7981
82+ public function testStarterSuggestIsTheSameWithDevSuggest (): void
83+ {
84+ $ this ->assertSame (
85+ $ this ->devComposer ['suggest ' ],
86+ $ this ->starterComposer ['suggest ' ],
87+ 'The starter \'s "suggest" section is not updated with the main composer.json. '
88+ );
89+ }
90+
91+ public function testFrameworkConfigIsTheSameWithDevSuggest (): void
92+ {
93+ $ this ->assertSame (
94+ $ this ->devComposer ['config ' ],
95+ $ this ->frameworkComposer ['config ' ],
96+ 'The framework \'s "config" section is not updated with the main composer.json. '
97+ );
98+ }
99+
100+ public function testStarterConfigIsTheSameWithDevSuggest (): void
101+ {
102+ $ this ->assertSame (
103+ $ this ->devComposer ['config ' ],
104+ $ this ->starterComposer ['config ' ],
105+ 'The starter \'s "config" section is not updated with the main composer.json. '
106+ );
107+ }
108+
80109 private function getComposerJson (string $ path ): array
81110 {
82111 try {
0 commit comments