-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding automated test for security testing.
- Loading branch information
Mike Madison
committed
May 6, 2022
1 parent
b95aa0e
commit 45c4bcb
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace Acquia\Blt\Tests; | ||
|
||
/** | ||
* Test security test commands. | ||
*/ | ||
class SecurityTestsTest extends BltProjectTestBase { | ||
|
||
/** | ||
* Test that executes the blt drupal security test. | ||
*/ | ||
public function testDrupalSecurity() { | ||
list($response) = $this->blt('tests:security-drupal'); | ||
$this->assertStringContainsString("0", $response); | ||
} | ||
|
||
/** | ||
* Test that executes the blt composer security test. | ||
*/ | ||
public function testComposerSecurity() { | ||
list($response) = $this->blt('tests:security-composer'); | ||
$this->assertStringContainsString("0", $response); | ||
} | ||
|
||
} |