first namespace, then other
[core.git] / framework / main / tests / resolver / command / console / class_TestsConsoleCommandResolver.php
index 56a2940e1e270241eca6eb6e85c670b9c4cf260e..5455f6a20e319ba0a3b599bda0ba8e1093ddd442 100644 (file)
@@ -67,9 +67,9 @@ class TestsConsoleCommandResolver extends BaseCommandResolver implements Command
                        throw new InvalidCommandException(array($resolverInstance, $commandName), self::EXCEPTION_INVALID_COMMAND);
                }
 
-               // Set the application instance
-               $resolverInstance->setApplicationInstance($applicationInstance);
+               // Set namespace and application instance
                $resolverInstance->setNamespace('CoreFramework\Tests\Command');
+               $resolverInstance->setApplicationInstance($applicationInstance);
 
                // Return the prepared instance
                return $resolverInstance;