Skip to content

Test in Lumen #1094

@rafaelmarcelino19

Description

@rafaelmarcelino19

I am using lumen 6.0 and php 7.2 added MakesGraphQLRequests to TestCase and when I try $this->postGraphQL() this returns an error: Call to undefined method ExampleTest::postJson()

So I override the methods in TestCase and changed the return to Response and not TestResponse because lumen doesn't have Illuminate\Foundation

In place of $this->postJson() I made $this->post()

And now Work

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementA feature or improvementlumenConcerns compatibility with Lumen

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions