public function SaveUploadTest::testNoUpload in Drupal 10
Same name and namespace in other branches
- 8 core/modules/file/tests/src/Functional/SaveUploadTest.php \Drupal\Tests\file\Functional\SaveUploadTest::testNoUpload()
- 9 core/modules/file/tests/src/Functional/SaveUploadTest.php \Drupal\Tests\file\Functional\SaveUploadTest::testNoUpload()
Tests for no failures when not uploading a file.
File
- core/
modules/ file/ tests/ src/ Functional/ SaveUploadTest.php, line 638
Class
- SaveUploadTest
- Tests the file_save_upload() function.
Namespace
Drupal\Tests\file\FunctionalCode
public function testNoUpload() {
$this
->drupalGet('file-test/upload');
$this
->submitForm([], 'Submit');
$this
->assertSession()
->pageTextNotContains("Epic upload FAIL!");
}