Use laravel api test on slim project

Posted 2 years ago by ernestoponce

Hi people , i'm currently working in a project made with slim framework and i want to know if its possible to use the nice api test json that laravel uses , for example something like this

public function testBasicExample()
    {
        $this->json('POST', '/user', ['name' => 'Sally'])
             ->seeJson([
                 'created' => true,
             ]);
    }

i use https://github.com/laracasts/Integrated by jeffrey for the integrated tests , but i saw that the section of the api only works on laravel projects . Any idea?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.