Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit ffc1a2bd authored by Andreas Hennings's avatar Andreas Hennings
Browse files

OEL-1227: Use https links in test, to pacify inspection tools.

parent 284a05d4
No related branches found
No related tags found
2 merge requests!128Update EPIC-1293-Project,!101OEL-1227: Move content banner into a block.
...@@ -79,7 +79,7 @@ class ContentEventRenderTest extends WhitelabelBrowserTestBase { ...@@ -79,7 +79,7 @@ class ContentEventRenderTest extends WhitelabelBrowserTestBase {
->create([ ->create([
'type' => 'oe_sc_event', 'type' => 'oe_sc_event',
'title' => 'Test event node', 'title' => 'Test event node',
'oe_summary' => 'http://www.example.org is a web page', 'oe_summary' => 'https://www.example.org is a web page',
'body' => 'Event body', 'body' => 'Event body',
'oe_sc_event_dates' => [ 'oe_sc_event_dates' => [
'value' => '2022-02-09T20:00:00', 'value' => '2022-02-09T20:00:00',
...@@ -128,7 +128,7 @@ class ContentEventRenderTest extends WhitelabelBrowserTestBase { ...@@ -128,7 +128,7 @@ class ContentEventRenderTest extends WhitelabelBrowserTestBase {
// Assert content banner summary. // Assert content banner summary.
$this->assertEquals( $this->assertEquals(
'http://www.example.org is a web page', 'https://www.example.org is a web page',
trim($content_banner->filter('.oe-sc-event__oe-summary')->text()) trim($content_banner->filter('.oe-sc-event__oe-summary')->text())
); );
......
...@@ -62,7 +62,7 @@ class ContentNewsRenderTest extends WhitelabelBrowserTestBase { ...@@ -62,7 +62,7 @@ class ContentNewsRenderTest extends WhitelabelBrowserTestBase {
->create([ ->create([
'type' => 'oe_sc_news', 'type' => 'oe_sc_news',
'title' => 'Test news node', 'title' => 'Test news node',
'oe_summary' => 'http://www.example.org is a web page', 'oe_summary' => 'https://www.example.org is a web page',
'body' => 'News body', 'body' => 'News body',
'oe_publication_date' => [ 'oe_publication_date' => [
'value' => '2022-02-09', 'value' => '2022-02-09',
...@@ -110,7 +110,7 @@ class ContentNewsRenderTest extends WhitelabelBrowserTestBase { ...@@ -110,7 +110,7 @@ class ContentNewsRenderTest extends WhitelabelBrowserTestBase {
trim($content_banner->filter('.card-body > div.my-4')->text()) trim($content_banner->filter('.card-body > div.my-4')->text())
); );
$this->assertEquals( $this->assertEquals(
'http://www.example.org is a web page', 'https://www.example.org is a web page',
trim($content_banner->filter('.oe-sc-news__oe-summary')->text()) trim($content_banner->filter('.oe-sc-news__oe-summary')->text())
); );
...@@ -143,7 +143,7 @@ class ContentNewsRenderTest extends WhitelabelBrowserTestBase { ...@@ -143,7 +143,7 @@ class ContentNewsRenderTest extends WhitelabelBrowserTestBase {
trim($image->attr('src')) trim($image->attr('src'))
); );
$this->assertEquals( $this->assertEquals(
'http://www.example.org is a web page', 'https://www.example.org is a web page',
trim($crawler->filter('div.card-text')->text()) trim($crawler->filter('div.card-text')->text())
); );
$this->assertEquals( $this->assertEquals(
......
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