Skip to content
Snippets Groups Projects
Commit a4716a7c authored by catch's avatar catch
Browse files

Merge branch '3416071-consolidate-one-more' into '11.x'

Consolidate one more method.

See merge request !6254
parents 18125a46 8715c11a
No related branches found
No related tags found
No related merge requests found
Pipeline #80335 passed
Pipeline: drupal

#80336

    ......@@ -521,6 +521,7 @@ public function testInvalidFileUploads() {
    \Drupal::service('router.builder')->rebuild();
    $this->setUpAuthorization('POST');
    $this->config('jsonapi.settings')->set('read_only', FALSE)->save(TRUE);
    $this->testFileUploadInvalidFileType();
    $this->testPostFileUploadInvalidHeaders();
    $this->testFileUploadLargerFileSize();
    $this->testFileUploadMaliciousExtension();
    ......@@ -570,11 +571,7 @@ public function testFileUploadZeroByteFile() {
    /**
    * Tests using the file upload route with an invalid file type.
    */
    public function testFileUploadInvalidFileType() {
    \Drupal::service('router.builder')->rebuild();
    $this->setUpAuthorization('POST');
    $this->config('jsonapi.settings')->set('read_only', FALSE)->save(TRUE);
    protected function testFileUploadInvalidFileType() {
    $uri = Url::fromUri('base:' . static::$postUri);
    // Test with a JSON file.
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment