Closed 4mation closed 6 years ago
Can you push your repo up to GitHub so I can check it out? Happy to try and help troubleshoot!
Have you tried with $charge->fresh() ...?
My repo for the code is up here https://github.com/andytan2624/ticketbeast
Thanks for helping btw 👍
@4mation the dd()
call is dumping the output from the FakePaymentGateway version of the test, not the failing test.
Adam's codebase doesn't test the StripeGateway on that commit. You'll notice the charge method isn't returning anything (hence the null
)
look at the phpunit.xml
file. You're missing this section:
<groups>
<exclude>
<group>integration</group>
</exclude>
</groups>
Thank you @liefie that was the issue. Problem fixed now, thanks everyone for helping out
Hi There
I was currently doing lesson 83 - Promoting Charges to Objects (https://github.com/nothingworksinc/ticketbeast/commit/6e983c593c9d698544f21e359ec32863d546526b)
I was testing this test in PaymentGatewayContractTests
However when I test, I get
There was 1 error:
The weird thing is before or after this test, if I do
dd($charge->cardLastFour())
It prints out 4242 which is correct.
Does anyone know why this issue is happening for me?