Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusjatenee committed Apr 3, 2024
1 parent 76ed5bc commit fadb777
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function testModelsAreProperlyMatchedToParents()
{
$relation = $this->getRelation();
$model1 = m::mock(Model::class);
$model1->shouldReceive('hasAttribute')->passthru();
$model1->shouldReceive('getAttribute')->with('parent_key')->andReturn(1);
$model1->shouldReceive('getAttribute')->with('foo')->passthru();
$model1->shouldReceive('hasGetMutator')->andReturn(false);
Expand All @@ -28,6 +29,7 @@ public function testModelsAreProperlyMatchedToParents()
$model1->shouldReceive('getRelationValue', 'relationLoaded', 'relationResolver', 'setRelation', 'isRelation')->passthru();

$model2 = m::mock(Model::class);
$model2->shouldReceive('hasAttribute')->passthru();
$model2->shouldReceive('getAttribute')->with('parent_key')->andReturn(2);
$model2->shouldReceive('getAttribute')->with('foo')->passthru();
$model2->shouldReceive('hasGetMutator')->andReturn(false);
Expand Down

0 comments on commit fadb777

Please sign in to comment.