lithium\tests\cases\template\helper\FormTest::testPasswordWithBindingValue PHP Method

testPasswordWithBindingValue() public method

Ensures that password fields aren't rendered with pre-populated values from bound record or document objects.
    public function testPasswordWithBindingValue()
    {
        $this->form->create(new Record(array('model' => $this->_model, 'data' => array('pass' => 'foobar'))));
        $result = $this->form->password('pass');
        $this->assertTags($result, array('input' => array('type' => 'password', 'name' => 'pass', 'id' => 'MockFormPostPass')));
    }
FormTest