Skip to content

Commit

Permalink
- Remove feature that's no longer supported due to dynamic property d…
Browse files Browse the repository at this point in the history
…eprecation
  • Loading branch information
tylernathanreed authored Dec 13, 2024
1 parent d0991b3 commit 37597d2
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions tests/Unit/JoinsRelationshipsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,24 +223,6 @@ public function multiconstraint_skip_middle_associative(Closure $query, string $
$this->assertEquals($builderClass, get_class($builder));
}

#[Test]
#[DataProvider('queryDataProvider')]
public function multiconstraint_mix_type(Closure $query, string $builderClass)
{
$builder = $query(new EloquentUserModelStub)
->joinRelation('posts.comments.likes', [
'posts' => function ($join) {
$join->type = 'left';
},
'likes' => function ($join) {
$join->type = 'right';
},
]);

$this->assertEquals('select * from "users" left join "posts" on "posts"."user_id" = "users"."id" inner join "comments" on "comments"."post_id" = "posts"."id" right join "likes" on "likes"."comment_id" = "comments"."id"', $builder->toSql());
$this->assertEquals($builderClass, get_class($builder));
}

#[Test]
#[DataProvider('queryDataProvider')]
public function throwsOnEmptyMorphTypesArray(Closure $query, string $builderClass)
Expand Down

0 comments on commit 37597d2

Please sign in to comment.