use Drupal\file\FileInterface;
use Drupal\Tests\BrowserTestBase;
use Drupal\file\Entity\File;
+use Drupal\Tests\TestFileCreationTrait;
/**
* Provides methods specifically for testing File module's field handling.
abstract class FileFieldTestBase extends BrowserTestBase {
use FileFieldCreationTrait;
+ use TestFileCreationTrait {
+ getTestFiles as drupalGetTestFiles;
+ }
/**
* Modules to enable.
$edit[$name][] = $file_path;
}
}
- $this->drupalPostForm("node/$nid/edit", $edit, t('Save and keep published'));
+ $this->drupalPostForm("node/$nid/edit", $edit, t('Save'));
return $nid;
}
];
$this->drupalPostForm('node/' . $nid . '/edit', [], t('Remove'));
- $this->drupalPostForm(NULL, $edit, t('Save and keep published'));
+ $this->drupalPostForm(NULL, $edit, t('Save'));
}
/**
];
$this->drupalPostForm('node/' . $nid . '/edit', [], t('Remove'));
- $this->drupalPostForm(NULL, $edit, t('Save and keep published'));
+ $this->drupalPostForm(NULL, $edit, t('Save'));
}
/**