Skip to content
Snippets Groups Projects

#3168858 Replace deprecated drupalPostForm() in tests.

3 files
+ 18
15
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -33,7 +33,8 @@ class EmptyValuesTest extends FileFieldSourcesTestBase {
*/
public function testAllSourcesEnabled() {
// Change allowed number of values.
$this->drupalPostForm('admin/structure/types/manage/' . $this->typeName . '/fields/node.' . $this->typeName . '.' . $this->fieldName . '/storage', ['cardinality' => FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED], t('Save field settings'));
$this->drupalGet('admin/structure/types/manage/' . $this->typeName . '/fields/node.' . $this->typeName . '.' . $this->fieldName . '/storage');
$this->submitForm(['cardinality' => FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED], t('Save field settings'));
$this->enableSources([
'upload' => TRUE,
Loading