diff --git a/tests/src/Functional/ContentEventRenderTest.php b/tests/src/Functional/ContentEventRenderTest.php index 8738bd32e..96286a95b 100644 --- a/tests/src/Functional/ContentEventRenderTest.php +++ b/tests/src/Functional/ContentEventRenderTest.php @@ -77,11 +77,11 @@ protected function setUp(): void { $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 @@ public function testEventRenderingFull(): void { // 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 7681b1c75..a6c4ab018 100644 --- a/tests/src/Functional/ContentNewsRenderTest.php +++ b/tests/src/Functional/ContentNewsRenderTest.php @@ -60,12 +60,12 @@ protected function setUp(): void { $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 @@ public function testNewsRenderingFull(): void { ); // 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 @@ public function testNewsRenderingTeaser(): void { ); // Assert content banner publication date. $this->assertEquals( - '10 February 2022', + '09 February 2022', trim($crawler->filter('div.card-body > span.text-muted')->text()) ); }