Registration::test_add_hidden_password_field PHP 메소드

test_add_hidden_password_field() 공개 메소드

    public function test_add_hidden_password_field()
    {
        global $_POST;
        // Test for password field in output when password is supplied
        $_POST['password_1'] = 'colloquy glint tendril choler';
        $this->expectOutputRegex('/(<input type="hidden" name="password_1.*)(" value=").*(").*(\\/>)/');
        \Pressbooks\Registration\add_hidden_password_field(array());
    }