Skip to content

Commit

Permalink
Fix checks in test
Browse files Browse the repository at this point in the history
  • Loading branch information
gudmdharalds committed Feb 1, 2022
1 parent b42a816 commit b13ae82
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/integration/RunScanTotalCommentsMaxWarningPostTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ protected function setUp(): void {
$this->options_commit,
);

$this->options['token'] = $this->options['github-token'];

$this->options['commit'] = $this->options['commit-test-run-scan-total-comments-max-warning-post'];
$this->options['pr_number'] = $this->options['pr-test-run-scan-total-comments-max-warning-post'];

if ( ! empty( $this->options['token'] ) ) {
if ( ! empty( $this->options['github-token'] ) ) {
$this->options['token'] = $this->options['github-token'];

vipgoci_unittests_output_suppress();

$this->current_user_info = vipgoci_github_authenticated_user_get(
Expand Down Expand Up @@ -126,7 +126,7 @@ private function _clearOldComments(): void {
public function testTotalCommentsReachedMax(): void {
$options_test = vipgoci_unittests_options_test(
$this->options,
array( 'github-token', 'token' ),
array( ),
$this
);

Expand Down Expand Up @@ -198,7 +198,7 @@ public function testTotalCommentsReachedMax(): void {
public function testTotalCommentsDidNotReachMax(): void {
$options_test = vipgoci_unittests_options_test(
$this->options,
array( 'github-token', 'token' ),
array( ),
$this
);

Expand Down

0 comments on commit b13ae82

Please sign in to comment.