Unit Tests: Only check for error notices as methods add success notices.

This commit is contained in:
Barry Kooij 2014-10-28 11:53:22 +01:00
parent 1bfab57e29
commit db4eb9a2c6
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ class WC_Tests_Notice_Functions extends WC_Unit_Test_Case {
*/
function test_wc_notice_count() {
// no notices
$this->assertEquals( 0, wc_notice_count() );
// no error notices
$this->assertEquals( 0, wc_notice_count( 'error' ) );
// single notice
wc_add_notice( 'Bogus Notice', 'success' );