diff --git a/tests/submission.file.test b/tests/submission.file.test index a306a64..383b258 100644 --- a/tests/submission.file.test +++ b/tests/submission.file.test @@ -36,7 +36,7 @@ function testAuthBasicSubmission() { * Test that a form can have a file component added and have it show for * anonymous visitors. */ - function testAnonBasicSubmission() { + function testAnonymousBasicSubmission() { // Create the node with a file component. $node = $this->createTestWebform(); @@ -68,7 +68,7 @@ function testAuthFileSubmission() { /** * Confirm a file can be submitted by an anonymous user. */ - function testAnonFileSubmission() { + function testAnonymousFileSubmission() { // Create the node with a file component. $node = $this->createTestWebform(); @@ -102,7 +102,7 @@ function testAuthFileRequiredSubmission() { * Confirm that a file can be submitted by anonymous visitors when another * component is required. */ - function testAnonFileRequiredSubmission() { + function testAnonymousFileRequiredSubmission() { // Create the node with a file component. $node = $this->createTestWebform(); @@ -135,7 +135,7 @@ function testAuthMultipleFileSubmission() { /** * Confirm multiple files can be submitted by anonymous visitors. */ - function testAnonMultipleFileSubmission() { + function testAnonymousMultipleFileSubmission() { // Create the node with a file component. $node = $this->createTestWebform(); @@ -339,7 +339,9 @@ function fileRequiredSubmissionTest($nid) { // Submit the form again but this time with the missing field. This should // still work. - $edit['submitted[textfield]'] = 'Test submission'; + $edit = array( + 'submitted[textfield]' => 'Test submission', + ); $this->drupalPost(NULL, $edit, 'Submit', array(), array(), 'webform-client-form-' . $nid); $this->assertResponse(200); $this->assertText(t('Thanks!')); @@ -374,9 +376,10 @@ function fileMultipleSubmissionTest($nid) { $file = $this->getTestText(); // Submit the webform with a file. - $edit = array(); - $edit['files[submitted_file_1]'] = drupal_realpath($image->uri); - $edit['files[submitted_file_2]'] = drupal_realpath($file->uri); + $edit = array( + 'files[submitted_file_1]' => drupal_realpath($image->uri), + 'files[submitted_file_2]' => drupal_realpath($file->uri), + ); $this->drupalPost('node/' . $nid, $edit, 'Submit', array(), array(), 'webform-client-form-' . $nid); $this->assertResponse(200); $this->assertText(t('Thanks!'));