assertNull($event->getPassword()); $this->assertEquals(PasswordContext::ACCOUNT, $event->getContext()); } public function testSettingPassword(): void { $event = new GenerateSecurePasswordEvent(); $event->setPassword('example'); $this->assertEquals('example', $event->getPassword()); } public function testSettingContext(): void { $event = new GenerateSecurePasswordEvent(PasswordContext::SHARING); $this->assertEquals(PasswordContext::SHARING, $event->getContext()); } }