public function testEditValidationSameAccount() { $user = new Opus_Account(null, null, 'user'); $form = new Admin_Form_Account($user->getId()); // check that form was populated $this->assertEquals('user', $form->getElement('username')->getValue()); $postData = array('username' => 'user', 'oldLogin' => 'user', 'roleguest' => '1', 'password' => 'notchanged', 'confirmPassword' => 'notchanged'); $this->assertTrue($form->isValid($postData)); }