public function test_check_listener_registered_event() { $array = Event::getListeners(UserCreatedEvent::class); $this->assertCount(1, $array); }