Skip to content

Commit

Permalink
adding automated test for security testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Madison committed May 5, 2022
1 parent d918c39 commit c848466
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/phpunit/src/SecurityTestsTest.php
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);
}

}

0 comments on commit c848466

Please sign in to comment.