Skip to content

Commit

Permalink
Rename custom invokable class
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 authored and askvortsov1 committed Dec 6, 2020
1 parent 27318fc commit c884006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/extenders/ApiControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public function custom_serializer_works_if_set_with_invokable_class()
{
$this->extend(
(new Extend\ApiController(ShowPostController::class))
->setSerializer(CustomPostSerializer::class, CustomInvokableClass::class)
->setSerializer(CustomPostSerializer::class, CustomApiControllerInvokableClass::class)
);

$this->prepDb();
Expand Down Expand Up @@ -748,7 +748,7 @@ protected function getDefaultAttributes($post)
}
}

class CustomInvokableClass
class CustomApiControllerInvokableClass
{
public function __invoke()
{
Expand Down

0 comments on commit c884006

Please sign in to comment.