comparison core/tests/Drupal/Tests/TestFileCreationTrait.php @ 12:7a779792577d

Update Drupal core to v8.4.5 (via Composer)
author Chris Cannam
date Fri, 23 Feb 2018 15:52:07 +0000
parents 4c8ae668cc8c
children af1871eacc83
comparison
equal deleted inserted replaced
11:bfffd8d7479a 12:7a779792577d
162 } 162 }
163 $text .= "\n"; 163 $text .= "\n";
164 } 164 }
165 165
166 // Create filename. 166 // Create filename.
167 file_put_contents('public://' . $filename . '.txt', $text); 167 $filename = 'public://' . $filename . '.txt';
168 file_put_contents($filename, $text);
168 return $filename; 169 return $filename;
169 } 170 }
170 171
171 } 172 }