Skip to content

Commit

Permalink
allLoaded hook tests fixed;
Browse files Browse the repository at this point in the history
  • Loading branch information
hans-thomas committed Jul 1, 2023
1 parent 0c254c1 commit d1e4b5b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Instances/Http/Resources/SampleWithHookCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Hans\Valravn\Http\Resources\Contracts\ValravnResourceCollection;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Collection;

class SampleWithHookCollection extends ValravnResourceCollection {

Expand All @@ -26,9 +27,11 @@ public function type(): string {
}

/**
* @param Collection $response
*
* @return void
*/
protected function allLoaded(): void {
protected function allLoaded( Collection &$response ): void {
$this->addAdditional( [
'all-loaded' => 'will you still love me when i no longer young and beautiful?'
] );
Expand Down

1 comment on commit d1e4b5b

@vercel
Copy link

@vercel vercel bot commented on d1e4b5b Jul 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

valravn – ./

valravn-git-master-hans-thomas.vercel.app
valravn-hans-thomas.vercel.app
valravn.vercel.app

Please sign in to comment.