Registration::test_add_hidden_password_field PHP Method

test_add_hidden_password_field() public method

    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());
    }