public function testIsAttributeSafe() { $user = UserTestHelper::createBasicUser('Steven'); $userPasswordForm = new UserPasswordForm($user); $userPasswordForm->setScenario('createUser'); $this->assertTrue($userPasswordForm->isAttributeSafe('username')); $this->assertFalse($userPasswordForm->isAttributeSafe('usernameee')); }