N98\Magento\Command\System\Setup\RemoveCommandTest::testModuleDoesNotExist PHP Method

testModuleDoesNotExist() public method

    public function testModuleDoesNotExist()
    {
        $application = $this->getApplication();
        $application->add(new RemoveCommand());
        $command = $this->getApplication()->find('sys:setup:remove');
        $commandTester = new CommandTester($command);
        $this->setExpectedException('InvalidArgumentException', 'No module found with name: "I_DO_NOT_EXIST"');
        $commandTester->execute(array('command' => $command->getName(), 'module' => 'I_DO_NOT_EXIST'));
    }