Adds a test for no dev (#11833)
parent
67d80e1c9d
commit
7a6bb18e21
|
@ -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))
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue