You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->assertRaw(t('Field %field can only hold @max values but there were @count uploaded. The following files have been omitted as a result: %list.', $args));
265
265
$node_storage->resetCache([$nid]);
@@ -291,7 +291,7 @@ public function testMultiValuedWidget() {
291
291
'%field' => $field_name,
292
292
'@max' => $cardinality,
293
293
'@count' => count($upload_files),
294
-
'%list' => $test_file->getFileName(),
294
+
'%list' => 'text-0_12.txt',
295
295
];
296
296
$this->assertRaw(t('Field %field can only hold @max values but there were @count uploaded. The following files have been omitted as a result: %list.', $args));
$this->assertResponse(200, 'Received a 200 response for posted test file.');
223
224
$this->assertNoRaw(t('For security reasons, your upload has been renamed'), 'Found no security message.');
224
-
$this->assertRaw(t('File name is @filename', ['@filename' => $this->phpfile->filename]), 'Dangerous file was not renamed when insecure uploads is TRUE.');
225
+
$this->assertSession()->pageTextContains('File name is php-2.php.');
225
226
$this->assertRaw(t('You WIN!'), 'Found the success message.');
226
227
227
228
// Check that the correct hooks were called.
@@ -291,6 +292,7 @@ public function testExistingRename() {
0 commit comments