public function ResponseTest::testIsForbidden

File

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

Class

ResponseTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testIsForbidden() {
  $response = new Response('', 403);
  $this
    ->assertTrue($response
    ->isForbidden());
  $response = new Response('', 200);
  $this
    ->assertFalse($response
    ->isForbidden());
}