diff --git a/tests/src/Functional/ContentEventRenderTest.php b/tests/src/Functional/ContentEventRenderTest.php index 8738bd32e6d3c2530eb2c1fe4ba4648d37efebba..96286a95b017ff51b6117def1aa25354466384f6 100644 --- a/tests/src/Functional/ContentEventRenderTest.php +++ b/tests/src/Functional/ContentEventRenderTest.php @@ -77,11 +77,11 @@ class ContentEventRenderTest extends WhitelabelBrowserTestBase { $node = \Drupal::entityTypeManager() ->getStorage('node') ->create([ - 'type' => 'oe_event', + 'type' => 'oe_sc_event', 'title' => 'Test event node', 'oe_summary' => 'http://www.example.org is a web page', 'body' => 'Event body', - 'oe_event_dates' => [ + 'oe_sc_event_dates' => [ 'value' => '2022-02-09T20:00:00', 'end_value' => '2022-02-09T22:00:00', ], @@ -124,7 +124,7 @@ class ContentEventRenderTest extends WhitelabelBrowserTestBase { // Assert content banner summary. $this->assertEquals( 'http://www.example.org is a web page', - trim($content_banner->filter('.oe-event__oe-summary')->text()) + trim($content_banner->filter('.oe-sc-event__oe-summary')->text()) ); // Assert inpage-navigation. $this->assertEquals( diff --git a/tests/src/Functional/ContentNewsRenderTest.php b/tests/src/Functional/ContentNewsRenderTest.php index 7681b1c751758b6ddf3cfaa19efd3e915131ee0a..a6c4ab0189fc6d3624f576506aece0848aac19eb 100644 --- a/tests/src/Functional/ContentNewsRenderTest.php +++ b/tests/src/Functional/ContentNewsRenderTest.php @@ -60,12 +60,12 @@ class ContentNewsRenderTest extends WhitelabelBrowserTestBase { $node = \Drupal::entityTypeManager() ->getStorage('node') ->create([ - 'type' => 'oe_news', + 'type' => 'oe_sc_news', 'title' => 'Test news node', 'oe_summary' => 'http://www.example.org is a web page', 'body' => 'News body', 'oe_publication_date' => [ - 'value' => '2022-02-09T20:00:00', + 'value' => '2022-02-09', ], 'uid' => 1, 'status' => 1, @@ -104,18 +104,18 @@ class ContentNewsRenderTest extends WhitelabelBrowserTestBase { ); // Assert content banner publication date. $this->assertEquals( - '10 February 2022', + '09 February 2022', trim($content_banner->filter('.card-body > div.my-4')->text()) ); // Assert content banner summary. $this->assertEquals( 'http://www.example.org is a web page', - trim($content_banner->filter('.oe-news__oe-summary')->text()) + trim($content_banner->filter('.oe-sc-news__oe-summary')->text()) ); // Assert the news content. $this->assertEquals( 'News body', - trim($crawler->filter('.oe-news__body')->text()) + trim($crawler->filter('.oe-sc-news__body')->text()) ); } @@ -149,7 +149,7 @@ class ContentNewsRenderTest extends WhitelabelBrowserTestBase { ); // Assert content banner publication date. $this->assertEquals( - '10 February 2022', + '09 February 2022', trim($crawler->filter('div.card-body > span.text-muted')->text()) ); }