public function constructorInitializesPreferences() { $user = new User(); $this->assertInstanceOf(UserPreferences::class, $user->getPreferences()); }