Flugg\Responder\Tests\MakeSuccessResponseTest::youCanPassInStatusCode PHP Method

youCanPassInStatusCode() public method

Test that you can change the status code using a second argument.
    public function youCanPassInStatusCode()
    {
        // Arrange...
        $fruit = $this->createModel();
        // Act...
        $response = $this->responder->success($fruit, 201);
        // Assert...
        $this->assertEquals($response->getStatusCode(), 201);
    }