mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-12-04 05:22:38 +03:00
Deps: Updated PHP package versions
Needed to update some tests due to charset casing change in Symfony 7.4
This commit is contained in:
539
composer.lock
generated
539
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -22,7 +22,7 @@ class ApiDocsTest extends TestCase
|
|||||||
$resp->assertStatus(200);
|
$resp->assertStatus(200);
|
||||||
$resp->assertSee(url('/api/docs.json'));
|
$resp->assertSee(url('/api/docs.json'));
|
||||||
$resp->assertSee('Show a JSON view of the API docs data.');
|
$resp->assertSee('Show a JSON view of the API docs data.');
|
||||||
$resp->assertHeader('Content-Type', 'text/html; charset=UTF-8');
|
$resp->assertHeader('Content-Type', 'text/html; charset=utf-8');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_docs_json_endpoint_returns_json()
|
public function test_docs_json_endpoint_returns_json()
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ class Saml2Test extends TestCase
|
|||||||
public function test_metadata_endpoint_displays_xml_as_expected()
|
public function test_metadata_endpoint_displays_xml_as_expected()
|
||||||
{
|
{
|
||||||
$req = $this->get('/saml2/metadata');
|
$req = $this->get('/saml2/metadata');
|
||||||
$req->assertHeader('Content-Type', 'text/xml; charset=UTF-8');
|
$req->assertHeader('Content-Type', 'text/xml; charset=utf-8');
|
||||||
$req->assertSee('md:EntityDescriptor');
|
$req->assertSee('md:EntityDescriptor');
|
||||||
$req->assertSee(url('/saml2/acs'));
|
$req->assertSee(url('/saml2/acs'));
|
||||||
}
|
}
|
||||||
@@ -51,7 +51,7 @@ class Saml2Test extends TestCase
|
|||||||
|
|
||||||
$req = $this->get('/saml2/metadata');
|
$req = $this->get('/saml2/metadata');
|
||||||
$req->assertOk();
|
$req->assertOk();
|
||||||
$req->assertHeader('Content-Type', 'text/xml; charset=UTF-8');
|
$req->assertHeader('Content-Type', 'text/xml; charset=utf-8');
|
||||||
$req->assertSee('md:EntityDescriptor');
|
$req->assertSee('md:EntityDescriptor');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -478,7 +478,7 @@ END;
|
|||||||
|
|
||||||
$resp = $this->asAdmin()->get("/theme/{$themeFolderName}/file.txt");
|
$resp = $this->asAdmin()->get("/theme/{$themeFolderName}/file.txt");
|
||||||
$resp->assertStreamedContent($text);
|
$resp->assertStreamedContent($text);
|
||||||
$resp->assertHeader('Content-Type', 'text/plain; charset=UTF-8');
|
$resp->assertHeader('Content-Type', 'text/plain; charset=utf-8');
|
||||||
$resp->assertHeader('Cache-Control', 'max-age=86400, private');
|
$resp->assertHeader('Cache-Control', 'max-age=86400, private');
|
||||||
|
|
||||||
$resp = $this->asAdmin()->get("/theme/{$themeFolderName}/image.png");
|
$resp = $this->asAdmin()->get("/theme/{$themeFolderName}/image.png");
|
||||||
@@ -487,7 +487,7 @@ END;
|
|||||||
|
|
||||||
$resp = $this->asAdmin()->get("/theme/{$themeFolderName}/file.css");
|
$resp = $this->asAdmin()->get("/theme/{$themeFolderName}/file.css");
|
||||||
$resp->assertStreamedContent($css);
|
$resp->assertStreamedContent($css);
|
||||||
$resp->assertHeader('Content-Type', 'text/css; charset=UTF-8');
|
$resp->assertHeader('Content-Type', 'text/css; charset=utf-8');
|
||||||
$resp->assertHeader('Cache-Control', 'max-age=86400, private');
|
$resp->assertHeader('Cache-Control', 'max-age=86400, private');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -323,7 +323,7 @@ class AttachmentTest extends TestCase
|
|||||||
|
|
||||||
$attachmentGet = $this->get($attachment->getUrl(true));
|
$attachmentGet = $this->get($attachment->getUrl(true));
|
||||||
// http-foundation/Response does some 'fixing' of responses to add charsets to text responses.
|
// http-foundation/Response does some 'fixing' of responses to add charsets to text responses.
|
||||||
$attachmentGet->assertHeader('Content-Type', 'text/plain; charset=UTF-8');
|
$attachmentGet->assertHeader('Content-Type', 'text/plain; charset=utf-8');
|
||||||
$attachmentGet->assertHeader('Content-Disposition', 'inline; filename="upload_test_file.txt"');
|
$attachmentGet->assertHeader('Content-Disposition', 'inline; filename="upload_test_file.txt"');
|
||||||
$attachmentGet->assertHeader('X-Content-Type-Options', 'nosniff');
|
$attachmentGet->assertHeader('X-Content-Type-Options', 'nosniff');
|
||||||
|
|
||||||
@@ -339,7 +339,7 @@ class AttachmentTest extends TestCase
|
|||||||
|
|
||||||
$attachmentGet = $this->get($attachment->getUrl(true));
|
$attachmentGet = $this->get($attachment->getUrl(true));
|
||||||
// http-foundation/Response does some 'fixing' of responses to add charsets to text responses.
|
// http-foundation/Response does some 'fixing' of responses to add charsets to text responses.
|
||||||
$attachmentGet->assertHeader('Content-Type', 'text/plain; charset=UTF-8');
|
$attachmentGet->assertHeader('Content-Type', 'text/plain; charset=utf-8');
|
||||||
$attachmentGet->assertHeader('Content-Disposition', 'inline; filename="test_file.html"');
|
$attachmentGet->assertHeader('Content-Disposition', 'inline; filename="test_file.html"');
|
||||||
|
|
||||||
$this->files->deleteAllAttachmentFiles();
|
$this->files->deleteAllAttachmentFiles();
|
||||||
|
|||||||
Reference in New Issue
Block a user