diff --git a/core/tests/Drupal/FunctionalJavascriptTests/Tests/DrupalSelenium2DriverTest.php b/core/tests/Drupal/FunctionalJavascriptTests/Tests/DrupalSelenium2DriverTest.php index ddd956ddb0..cec7ef4d6c 100644 --- a/core/tests/Drupal/FunctionalJavascriptTests/Tests/DrupalSelenium2DriverTest.php +++ b/core/tests/Drupal/FunctionalJavascriptTests/Tests/DrupalSelenium2DriverTest.php @@ -84,7 +84,7 @@ public function testGetRemoteFilePath() { $multiple_field->setValue(implode("\n", $remote_paths)); $this->getSession()->getPage()->findButton('Save')->click(); $entity = EntityTest::load($entity->id()); - $this->assertNotEmpty($entity->field_file); + $this->assertCount(3, $entity->field_file); // Tests that upload remote files not works without remote path. $this->drupalGet($entity->toUrl('edit-form'));