Skip to content

Commit 7fe3785

Browse files
committed
Fix failing tests
1 parent 67cef6f commit 7fe3785

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/fixtures/models/post-many-to-many-polymorphic-relationship.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ class Post extends Model
2929

3030
public function tags()
3131
{
32-
return $this->morphToMany(\App\Tag::class, 'tagable');
32+
return $this->morphToMany(Tag::class, 'tagable');
3333
}
3434
}

tests/fixtures/models/tag-many-to-many-polymorphic-relationship.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ class Tag extends Model
2929

3030
public function posts()
3131
{
32-
return $this->morphedByMany(\App\Post::class, 'tagable');
32+
return $this->morphedByMany(Post::class, 'tagable');
3333
}
3434

3535
public function videos()
3636
{
37-
return $this->morphedByMany(\App\Video::class, 'tagable');
37+
return $this->morphedByMany(Video::class, 'tagable');
3838
}
3939
}

tests/fixtures/models/video-many-to-many-polymorphic-relationship.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ class Video extends Model
2929

3030
public function tags()
3131
{
32-
return $this->morphToMany(\App\Tag::class, 'tagable');
32+
return $this->morphToMany(Tag::class, 'tagable');
3333
}
3434
}

0 commit comments

Comments
 (0)