Admin_Apple_Notice_Test::testLineBreaks PHP Method

testLineBreaks() public method

public testLineBreaks ( )
    public function testLineBreaks()
    {
        Admin_Apple_Notice::info('One message|Another 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>One message<br />Another message</strong></p></div>');
        $notice = preg_replace('/\\s+/', '', $notice);
        $this->assertEquals($expected, $notice);
    }