public function JsonResponseTest::testStaticCreateWithCustomStatus

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/JsonResponseTest.php, line 127

Class

JsonResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testStaticCreateWithCustomStatus() {
  $response = JsonResponse::create(array(), 202);
  $this
    ->assertSame(202, $response
    ->getStatusCode());
}