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 67d80e1 commit 7a6bb18Copy full SHA for 7a6bb18
tests/Composer/Test/Command/AuditCommandTest.php
@@ -57,4 +57,20 @@ public function testAuditPackageWithNoSecurityVulnerabilities(): void
57
trim($appTester->getDisplay(true))
58
);
59
}
60
+
61
+ public function testAuditPackageWithNoDevOptionPassed(): void
62
+ {
63
+ $this->initTempComposer();
64
+ $devPackage = [self::getPackage()];
65
+ $this->createInstalledJson([], $devPackage);
66
+ $this->createComposerLock([], $devPackage);
67
68
+ $appTester = $this->getApplicationTester();
69
+ $appTester->run(['command' => 'audit', '--no-dev' => true]);
70
71
+ self::assertStringContainsString(
72
+ 'No packages - skipping audit.',
73
+ trim($appTester->getDisplay(true))
74
+ );
75
+ }
76
0 commit comments