66use Neuron \Cli \Commands \Registry ;
77use Neuron \Cli \Console \Input ;
88use Neuron \Cli \Console \Output ;
9+ use Neuron \Core \Registry \RegistryKeys ;
910use PHPUnit \Framework \TestCase ;
1011
1112class ComponentListCommandTest extends TestCase
@@ -73,7 +74,7 @@ public function testExecuteFormattedList(): void
7374 $ this ->registry ->register ( 'test:command ' , 'Tests\Cli\Commands\Core\MockTestCommand ' );
7475 $ this ->registry ->register ( 'help ' , 'Neuron\Cli\Commands\Core\HelpCommand ' );
7576
76- \Neuron \Patterns \Registry::getInstance ()->set ( ' cli.application ' , $ app );
77+ \Neuron \Patterns \Registry::getInstance ()->set ( RegistryKeys:: CLI_APPLICATION_LEGACY , $ app );
7778
7879 $ input = new Input ( [] );
7980 $ input ->parse ( $ this ->command );
@@ -95,7 +96,7 @@ public function testExecuteRawList(): void
9596 $ this ->registry ->register ( 'test:command ' , 'Tests\Cli\Commands\Core\MockTestCommand ' );
9697 $ this ->registry ->register ( 'help ' , 'Neuron\Cli\Commands\Core\HelpCommand ' );
9798
98- \Neuron \Patterns \Registry::getInstance ()->set ( ' cli.application ' , $ app );
99+ \Neuron \Patterns \Registry::getInstance ()->set ( RegistryKeys:: CLI_APPLICATION_LEGACY , $ app );
99100
100101 $ input = new Input ( ['--raw ' ] );
101102 $ input ->parse ( $ this ->command );
@@ -120,7 +121,7 @@ public function testExecuteWithNamespaceFilter(): void
120121 $ this ->registry ->register ( 'help ' , 'Neuron\Cli\Commands\Core\HelpCommand ' );
121122 $ this ->registry ->register ( 'other:command ' , 'Tests\Cli\Commands\Core\MockTestCommand ' );
122123
123- \Neuron \Patterns \Registry::getInstance ()->set ( ' cli.application ' , $ app );
124+ \Neuron \Patterns \Registry::getInstance ()->set ( RegistryKeys:: CLI_APPLICATION_LEGACY , $ app );
124125
125126 $ input = new Input ( ['--namespace=test ' ] );
126127 $ input ->parse ( $ this ->command );
@@ -142,7 +143,7 @@ public function testExecuteWithEmptyRegistry(): void
142143 $ app = $ this ->createMockApplication ();
143144 // Don't register any commands
144145
145- \Neuron \Patterns \Registry::getInstance ()->set ( ' cli.application ' , $ app );
146+ \Neuron \Patterns \Registry::getInstance ()->set ( RegistryKeys:: CLI_APPLICATION_LEGACY , $ app );
146147
147148 $ input = new Input ( [] );
148149 $ input ->parse ( $ this ->command );
@@ -161,7 +162,7 @@ public function testExecuteWithNamespaceFilterNoMatches(): void
161162 $ app = $ this ->createMockApplication ();
162163 $ this ->registry ->register ( 'test:command ' , 'Tests\Cli\Commands\Core\MockTestCommand ' );
163164
164- \Neuron \Patterns \Registry::getInstance ()->set ( ' cli.application ' , $ app );
165+ \Neuron \Patterns \Registry::getInstance ()->set ( RegistryKeys:: CLI_APPLICATION_LEGACY , $ app );
165166
166167 $ input = new Input ( ['--namespace=nonexistent ' ] );
167168 $ input ->parse ( $ this ->command );
@@ -183,7 +184,7 @@ public function testRawListWithNamespaceFilter(): void
183184 $ this ->registry ->register ( 'test:command2 ' , 'Tests\Cli\Commands\Core\MockTestCommand ' );
184185 $ this ->registry ->register ( 'other:command ' , 'Tests\Cli\Commands\Core\MockTestCommand ' );
185186
186- \Neuron \Patterns \Registry::getInstance ()->set ( ' cli.application ' , $ app );
187+ \Neuron \Patterns \Registry::getInstance ()->set ( RegistryKeys:: CLI_APPLICATION_LEGACY , $ app );
187188
188189 $ input = new Input ( ['--raw ' , '--namespace=test ' ] );
189190 $ input ->parse ( $ this ->command );
@@ -206,7 +207,7 @@ public function testFormattedListGroupsAndSortsNamespaces(): void
206207 $ this ->registry ->register ( 'zebra:test ' , 'Tests\Cli\Commands\Core\MockTestCommand ' );
207208 $ this ->registry ->register ( 'alpha:test ' , 'Tests\Cli\Commands\Core\MockTestCommand ' );
208209
209- \Neuron \Patterns \Registry::getInstance ()->set ( ' cli.application ' , $ app );
210+ \Neuron \Patterns \Registry::getInstance ()->set ( RegistryKeys:: CLI_APPLICATION_LEGACY , $ app );
210211
211212 $ input = new Input ( [] );
212213 $ input ->parse ( $ this ->command );
0 commit comments