We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d463df1 commit aaff0aeCopy full SHA for aaff0ae
tests/Composer/Test/Command/UpdateCommandTest.php
@@ -13,6 +13,7 @@
13
namespace Composer\Test\Command;
14
15
use Composer\Test\TestCase;
16
+use InvalidArgumentException;
17
18
class UpdateCommandTest extends TestCase
19
{
@@ -101,4 +102,14 @@ public static function provideUpdates(): \Generator
101
102
OUTPUT
103
];
104
}
105
+
106
+ public function testInteractiveModeThrowsIfNoPackageEntered(): void
107
+ {
108
+ $this->expectException(InvalidArgumentException::class);
109
+ $this->expectExceptionMessage('You must enter minimum one package.');
110
111
+ $appTester = $this->getApplicationTester();
112
+ $appTester->setInputs(['']);
113
+ $appTester->run(['command' => 'update', '--interactive' => true]);
114
+ }
115
0 commit comments