comparison core/modules/text/src/Tests/TextFieldTest.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
111 ->setComponent($text_field_name) 111 ->setComponent($text_field_name)
112 ->setComponent($file_field_name) 112 ->setComponent($file_field_name)
113 ->save(); 113 ->save();
114 114
115 $test_file = current($this->drupalGetTestFiles('text')); 115 $test_file = current($this->drupalGetTestFiles('text'));
116 $edit['files[file_field_0]'] = drupal_realpath($test_file->uri); 116 $edit['files[file_field_0]'] = \Drupal::service('file_system')->realpath($test_file->uri);
117 $this->drupalPostForm('entity_test/add', $edit, 'Upload'); 117 $this->drupalPostForm('entity_test/add', $edit, 'Upload');
118 $this->assertResponse(200); 118 $this->assertResponse(200);
119 $edit = [ 119 $edit = [
120 'text_long[0][value]' => 'Long text' 120 'text_long[0][value]' => 'Long text'
121 ]; 121 ];