From db4eb9a2c69452e76406b5bb83601b93de728f95 Mon Sep 17 00:00:00 2001 From: Barry Kooij Date: Tue, 28 Oct 2014 11:53:22 +0100 Subject: [PATCH] Unit Tests: Only check for error notices as methods add success notices. --- tests/unit-tests/notice-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit-tests/notice-functions.php b/tests/unit-tests/notice-functions.php index da55cec5cca..3f9199fda00 100644 --- a/tests/unit-tests/notice-functions.php +++ b/tests/unit-tests/notice-functions.php @@ -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' );