Skip to content
Snippets Groups Projects
Commit 503284a9 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

Issue #2137231 by aspilicious: Remove file_public_path() variable get usage.

parent 9107f06d
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -104,7 +104,7 @@ function testDrupalRewriteSettings() {
),
);
foreach ($tests as $test) {
$filename = variable_get('file_public_path', conf_path() . '/files') . '/mock_settings.php';
$filename = settings()->get('file_public_path', conf_path() . '/files') . '/mock_settings.php';
file_put_contents(DRUPAL_ROOT . '/' . $filename, "<?php\n" . $test['original'] . "\n");
drupal_rewrite_settings($test['settings'], $filename);
$this->assertEqual(file_get_contents(DRUPAL_ROOT . '/' . $filename), "<?php\n" . $test['expected'] . "\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment