1
0
Fork 0

Adds a test for no dev (#11833)

pull/11842/head
theoboldalex 2024-02-08 10:06:34 +00:00 committed by GitHub
parent 67d80e1c9d
commit 7a6bb18e21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 0 deletions

View File

@ -57,4 +57,20 @@ class AuditCommandTest extends TestCase
trim($appTester->getDisplay(true)) trim($appTester->getDisplay(true))
); );
} }
public function testAuditPackageWithNoDevOptionPassed(): void
{
$this->initTempComposer();
$devPackage = [self::getPackage()];
$this->createInstalledJson([], $devPackage);
$this->createComposerLock([], $devPackage);
$appTester = $this->getApplicationTester();
$appTester->run(['command' => 'audit', '--no-dev' => true]);
self::assertStringContainsString(
'No packages - skipping audit.',
trim($appTester->getDisplay(true))
);
}
} }