Fix WC_Log_Levels::is_valid_level tests
The wrong method was being called in tests.
This commit is contained in:
parent
23a45125e7
commit
50eb303a73
|
@ -48,15 +48,15 @@ class WC_Tests_Log_Levels extends WC_Unit_Test_Case {
|
|||
* @since 2.8
|
||||
*/
|
||||
public function test_is_valid_level() {
|
||||
$this->assertFalse( WC_Log_Levels::get_level_severity( 'unrecognized level' ) );
|
||||
$this->assertTrue( WC_Log_Levels::get_level_severity( 'debug' ) );
|
||||
$this->assertTrue( WC_Log_Levels::get_level_severity( 'info' ) );
|
||||
$this->assertTrue( WC_Log_Levels::get_level_severity( 'notice' ) );
|
||||
$this->assertTrue( WC_Log_Levels::get_level_severity( 'warning' ) );
|
||||
$this->assertTrue( WC_Log_Levels::get_level_severity( 'error' ) );
|
||||
$this->assertTrue( WC_Log_Levels::get_level_severity( 'critical' ) );
|
||||
$this->assertTrue( WC_Log_Levels::get_level_severity( 'alert' ) );
|
||||
$this->assertTrue( WC_Log_Levels::get_level_severity( 'emergency' ) );
|
||||
$this->assertFalse( WC_Log_Levels::is_valid_level( 'unrecognized level' ) );
|
||||
$this->assertTrue( WC_Log_Levels::is_valid_level( 'debug' ) );
|
||||
$this->assertTrue( WC_Log_Levels::is_valid_level( 'info' ) );
|
||||
$this->assertTrue( WC_Log_Levels::is_valid_level( 'notice' ) );
|
||||
$this->assertTrue( WC_Log_Levels::is_valid_level( 'warning' ) );
|
||||
$this->assertTrue( WC_Log_Levels::is_valid_level( 'error' ) );
|
||||
$this->assertTrue( WC_Log_Levels::is_valid_level( 'critical' ) );
|
||||
$this->assertTrue( WC_Log_Levels::is_valid_level( 'alert' ) );
|
||||
$this->assertTrue( WC_Log_Levels::is_valid_level( 'emergency' ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue