Closed dsazup closed 4 years ago
Hi Friend!
Thanks for your contribution. I'm working today so will try to have a look this evening!
Just had a super quick look. I've not tried it, but I imagine this will now always return a collection?
Hey, thanks for looking into it and take your time. 👍
Just had a super quick look. I've not tried it, but I imagine this will now always return a collection?
Afaik it does not change what is returned. It changes what is passed to callAfterCreating
which does not return anything. Down below it still has:
$this->createdInstance = $returnFirstCollectionResultAtEnd ? $result->first() : $result;
$this->testCaseCaller->processAssertions($this->createdInstance);
return $this->createdInstance;
Okay, just got around to testing this, and everything seems fine and dandy. Merging in 👌
@all-contributors please add @dsazup for code
@lukeraymonddowning
I've put up a pull request to add @dsazup! :tada:
Hey, this fixes #84. Although I am not sure if this is a good change, so if you do not think this is a bug, feel free to close it.