objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this); parent::setUp(); } /** * Test configure() method implicitly via construct invocation. * * @return void */ public function testConfigure() { $this->command = $this->objectManager ->getObject(\Magento\User\Console\UnlockAdminAccountCommand::class); $this->assertEquals(UnlockAdminAccountCommand::COMMAND_ADMIN_ACCOUNT_UNLOCK, $this->command->getName()); $this->assertEquals(UnlockAdminAccountCommand::COMMAND_DESCRIPTION, $this->command->getDescription()); $this->command->getDefinition()->getArgument(UnlockAdminAccountCommand::ARGUMENT_ADMIN_USERNAME); $this->assertContains('This command unlocks an admin account by its username', $this->command->getHelp()); } }