plugin icon indicating copy to clipboard operation
plugin copied to clipboard

[Bug]: Not recognize Queue facade :: assertPushed method

Open kamil-jakubowski opened this issue 1 year ago • 2 comments

Bug description

image

Laravel 5.4

Plugin version

8.1.4.241

Operating system

MacOS

Steps to reproduce

No response

Relevant log output

No response

kamil-jakubowski avatar Jul 04 '24 23:07 kamil-jakubowski

After calling Queue::fake() the Queue facade suddenly becomes the facade for the \Illuminate\Support\Testing\Fakes\QueueFake class. I can't complete these methods in all cases since they are available only after calling the fake() method.

You can use this correct way:

image

adelf avatar Jul 05 '24 09:07 adelf

Ah, ok make sense, my bad, sorry it was late night and I haven't thought that assertion functions aren't in the main Queue facade 🤦

Unfortunately in lravel 5.4 Queue::fake() does not return anything, so I cannot use your proposal for autocompletion. image

Thanks for the answer and for the plugin, it really helps working with legacy laravel app 👍 🙏

kamil-jakubowski avatar Jul 05 '24 12:07 kamil-jakubowski