Admin_Apple_Notice_Test::testSuccess PHP Метод

testSuccess() публичный Метод

public testSuccess ( )
    public function testSuccess()
    {
        Admin_Apple_Notice::success('This is a success message', $this->user_id);
        ob_start();
        Admin_Apple_Notice::show();
        $notice = ob_get_contents();
        ob_end_clean();
        $expected = preg_replace('/\\s+/', '', '<div class="notice updated is-dismissible"><p><strong>This is a success message</strong></p></div>');
        $notice = preg_replace('/\\s+/', '', $notice);
        $this->assertEquals($expected, $notice);
    }