App\Test\TestCase\Controller\PagesControllerTest::testDirectoryTraversalProtection PHP 메소드

testDirectoryTraversalProtection() 공개 메소드

Test directory traversal protection
    public function testDirectoryTraversalProtection()
    {
        $this->get('/pages/../Layout/ajax');
        $this->assertResponseCode(403);
        $this->assertResponseContains('Forbidden');
    }