How do I mock this app()->getLocale()

Posted 3 months ago by barrymcm

I need to mock app()->getLocale() but I don't know how to mock the app() helper. Ive tried to mock Application but thats not working as I get the following error: ReflectionException : Class config does not exist

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.