request('GET', '/themes/chamilo/colors.css'); $this->assertResponseIsSuccessful(); } public function testInvalidAccess(): void { $client = static::createClient(); $client->request('GET', '/themes/chamilo/nonexistent.css'); $this->assertResponseStatusCodeSame(Response::HTTP_NOT_FOUND); } public function testAccessToSystemFiles(): void { $client = static::createClient(); $client->request('GET', '/themes/chamilo/../../../../../../etc/passwd'); $this->assertResponseStatusCodeSame(Response::HTTP_INTERNAL_SERVER_ERROR); $client->request('GET', 'themes/chamilo/../../../.env'); $this->assertResponseStatusCodeSame(Response::HTTP_INTERNAL_SERVER_ERROR); } }