Skip to content

Commit

Permalink
Avoid naming conflict between CustomPost in ModelTest and CustomPost …
Browse files Browse the repository at this point in the history
…in PostTest
  • Loading branch information
askvortsov1 committed Oct 28, 2020
1 parent 5255bb1 commit 1c110d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/integration/extenders/ModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public function custom_default_attribute_inheritance_prioritizes_child_class()

$this->app();

$post = new CustomPost;
$post = new ModelTestCustomPost;

$this->assertEquals(42, $post->answer);

Expand Down Expand Up @@ -416,7 +416,7 @@ public function custom_date_attribute_doesnt_work_if_set_on_unrelated_model()
}
}

class CustomPost extends AbstractEventPost
class ModelTestCustomPost extends AbstractEventPost
{
/**
* {@inheritdoc}
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/extenders/PostTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function custom_post_type_doesnt_exist_by_default()
*/
public function custom_post_type_exists_if_added()
{
$this->extend((new Extend\Post)->type(CustomPost::class));
$this->extend((new Extend\Post)->type(PostTestCustomPost::class));

// Needed for extenders to be booted
$this->app();
Expand All @@ -39,7 +39,7 @@ public function custom_post_type_exists_if_added()
}
}

class CustomPost extends AbstractEventPost implements MergeableInterface
class PostTestCustomPost extends AbstractEventPost implements MergeableInterface
{
/**
* {@inheritdoc}
Expand Down

0 comments on commit 1c110d7

Please sign in to comment.