Loading core/modules/jsonapi/tests/src/Functional/FileUploadTest.php +2 −5 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading @@ -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. Loading Loading
core/modules/jsonapi/tests/src/Functional/FileUploadTest.php +2 −5 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading @@ -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. Loading