Skip to content

Commit

Permalink
refactor: updated the function to check string
Browse files Browse the repository at this point in the history
  • Loading branch information
SH4LIN committed Aug 6, 2024
1 parent 51fab1d commit 26237c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/php/Unit/Modules/SettingsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function testGetWarningClassesForDaysMoreThen14() {

$return = $method->invokeArgs( $object, [ 15 ] );

$this->assertEquals( false, str_contains( $return, 'hidden' ) );
$this->assertStringNotContainsString( 'hidden', $return );
}

/**
Expand All @@ -178,7 +178,7 @@ public function testGetWarningClassesForDaysLessThen14() {

$return = $method->invokeArgs( $object, [ 13 ] );

$this->assertEquals( true, str_contains( $return, 'hidden' ) );
$this->assertStringContainsString( 'hidden', $return );
}

/**
Expand Down

0 comments on commit 26237c2

Please sign in to comment.