1010use Magento \Framework \App \Config \MutableScopeConfigInterface ;
1111use Magento \Framework \App \Config \ScopeConfigInterface ;
1212use Magento \Framework \Exception \LocalizedException ;
13+ use Magento \Framework \HTTP \LaminasClient ;
1314use Magento \Framework \HTTP \LaminasClientFactory ;
1415use Magento \Framework \ObjectManagerInterface ;
1516use Magento \Framework \Serialize \SerializerInterface ;
@@ -170,13 +171,13 @@ public function testNerdGraphModeSelection()
170171
171172 /**
172173 * Test Deployments service configuration
174+ * @throws \ReflectionException
173175 */
174176 public function testDeploymentsServiceConfiguration ()
175177 {
176178 // Test that Deployments service is properly configured
177179 $ this ->assertInstanceOf (Deployments::class, $ this ->deployments );
178180
179- // Test dependency injection
180181 $ reflection = new \ReflectionClass ($ this ->deployments );
181182 $ constructor = $ reflection ->getConstructor ();
182183 $ parameters = $ constructor ->getParameters ();
@@ -199,12 +200,12 @@ public function testDeploymentsServiceConfiguration()
199200
200201 /**
201202 * Test NerdGraph Client configuration
203+ * @throws \ReflectionException
202204 */
203205 public function testNerdGraphClientConfiguration ()
204206 {
205207 $ this ->assertInstanceOf (Client::class, $ this ->nerdGraphClient );
206208
207- // Test dependency injection
208209 $ reflection = new \ReflectionClass ($ this ->nerdGraphClient );
209210 $ constructor = $ reflection ->getConstructor ();
210211 $ parameters = $ constructor ->getParameters ();
@@ -225,12 +226,12 @@ public function testNerdGraphClientConfiguration()
225226
226227 /**
227228 * Test DeploymentTracker configuration
229+ * @throws \ReflectionException
228230 */
229231 public function testDeploymentTrackerConfiguration ()
230232 {
231233 $ this ->assertInstanceOf (DeploymentTracker::class, $ this ->deploymentTracker );
232234
233- // Test dependency injection
234235 $ reflection = new \ReflectionClass ($ this ->deploymentTracker );
235236 $ constructor = $ reflection ->getConstructor ();
236237 $ parameters = $ constructor ->getParameters ();
@@ -289,7 +290,7 @@ public function testHttpClientFactoryIntegration()
289290
290291 // Should be able to create HTTP client
291292 $ httpClient = $ httpClientFactory ->create ();
292- $ this ->assertInstanceOf (\ Magento \ Framework \ HTTP \ LaminasClient::class, $ httpClient );
293+ $ this ->assertInstanceOf (LaminasClient::class, $ httpClient );
293294 }
294295
295296 /**
@@ -318,36 +319,12 @@ public function testLoggerIntegration()
318319
319320 // Should be able to log without errors
320321 $ logger ->info ('Test log message from integration test ' );
321- $ this ->assertTrue (true ); // If we get here, logging worked
322- }
323-
324- /**
325- * Test configuration paths are accessible
326- */
327- public function testConfigurationPaths ()
328- {
329- $ testPaths = [
330- 'newrelicreporting/general/enable ' ,
331- 'newrelicreporting/general/api_mode ' ,
332- 'newrelicreporting/general/entity_guid ' ,
333- 'newrelicreporting/general/app_id ' ,
334- 'newrelicreporting/general/app_name ' ,
335- 'newrelicreporting/general/api ' ,
336- 'newrelicreporting/general/nerd_graph_api_url ' ,
337- 'newrelicreporting/general/api_url '
338- ];
339-
340- $ scopeConfig = $ this ->objectManager ->get (ScopeConfigInterface::class);
341-
342- foreach ($ testPaths as $ path ) {
343- // Should not throw exception when accessing these paths
344- $ value = $ scopeConfig ->getValue ($ path );
345- $ this ->assertTrue (true ); // If we get here, path is accessible
346- }
322+ $ this ->assertTrue (true );
347323 }
348324
349325 /**
350326 * Test error handling in deployment workflow
327+ * @throws LocalizedException
351328 */
352329 public function testDeploymentWorkflowErrorHandling ()
353330 {
0 commit comments