Skip to content
Snippets Groups Projects
Commit 0eff3950 authored by Derek Wright's avatar Derek Wright
Browse files
parent 5301f266
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ class PathologicSettingsCommon {
'proto-rel' => $this->t('Protocol relative URL (<code>//example.com/foo/bar</code>)'),
'path' => $this->t('Path relative to server root (<code>/foo/bar</code>)'),
],
'#description' => t('The <em>Full URL</em> option is best for stopping broken images and links in syndicated content (such as in RSS feeds), but will likely lead to problems if your site is accessible by both HTTP and HTTPS. Paths output with the <em>Protocol relative URL</em> option will avoid such problems, but feed readers and other software not using up-to-date standards may be confused by the paths. The <em>Path relative to server root</em> option will avoid problems with sites accessible by both HTTP and HTTPS with no compatibility concerns, but will absolutely not fix broken images and links in syndicated content.'),
'#description' => $this->t('The <em>Full URL</em> option is best for stopping broken images and links in syndicated content (such as in RSS feeds), but will likely lead to problems if your site is accessible by both HTTP and HTTPS. Paths output with the <em>Protocol relative URL</em> option will avoid such problems, but feed readers and other software not using up-to-date standards may be confused by the paths. The <em>Path relative to server root</em> option will avoid problems with sites accessible by both HTTP and HTTPS with no compatibility concerns, but will absolutely not fix broken images and links in syndicated content.'),
'#weight' => 10,
],
'local_paths' => [
......
......@@ -53,7 +53,7 @@ class PathologicUITest extends BrowserTestBase {
'protocol_style' => 'proto-rel',
'local_paths' => 'http://example.com/',
];
$this->drupalPostForm(NULL, $edit, t('Save configuration'));
$this->drupalPostForm(NULL, $edit, 'Save configuration');
$this->assertText('The configuration options have been saved.');
$this->assertFieldChecked('edit-protocol-style-proto-rel');
$this->assertText('http://example.com/');
......@@ -76,7 +76,7 @@ class PathologicUITest extends BrowserTestBase {
$this->drupalPostForm(NULL, [
'filters[filter_html_escape][status]' => FALSE,
'filters[filter_pathologic][status]' => '1',
], t('Save configuration'));
], 'Save configuration');
$this->drupalGet('/admin/config/content/formats/manage/plain_text');
$this->assertRaw('In most cases, Pathologic should be the <em>last</em> filter in the &ldquo;Filter processing order&rdquo; list.');
......@@ -85,7 +85,7 @@ class PathologicUITest extends BrowserTestBase {
$this->drupalPostForm(NULL, [
'filters[filter_pathologic][settings][settings_source]' => 'local',
'filters[filter_pathologic][settings][local_settings][protocol_style]' => 'full',
], t('Save configuration'));
], 'Save configuration');
$this->drupalGet('/admin/config/content/formats/manage/plain_text');
$this->assertFieldChecked('edit-filters-filter-pathologic-settings-settings-source-local');
......@@ -102,7 +102,7 @@ class PathologicUITest extends BrowserTestBase {
'title[0][value]' => 'Test pathologic',
'body[0][value]' => '<a href="node/1">Test link</a>',
];
$this->drupalPostForm('node/add/page', $edit, t('Save'));
$this->drupalPostForm('node/add/page', $edit, 'Save');
// Assert that the link is processed with Pathologic.
$this->clickLink('Test link');
......
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