Skip to content
Snippets Groups Projects
Commit ae107dea authored by Mark Fullmer's avatar Mark Fullmer
Browse files

Issue #3412196: Add strict typing for Feed Block

parent 4656e1b4
No related branches found
No related tags found
1 merge request!8Issue #3412196 by mark_fullmer, daddison: Add strict typing for Feed Block
Pipeline #411490 passed
<?php <?php
declare(strict_types=1);
namespace Drupal\Tests\feed_block\FunctionalJavascript; namespace Drupal\Tests\feed_block\FunctionalJavascript;
use Drupal\FunctionalJavascriptTests\WebDriverTestBase; use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
...@@ -70,7 +72,6 @@ class RssTypesTest extends WebDriverTestBase { ...@@ -70,7 +72,6 @@ class RssTypesTest extends WebDriverTestBase {
$this->drupalGet('<front>'); $this->drupalGet('<front>');
// Verify page output. // Verify page output.
$assert->elementTextContains('css', '#block-stark-feedblocktest h2', 'Feed Block Test'); $assert->elementTextContains('css', '#block-stark-feedblocktest h2', 'Feed Block Test');
$assert->pageTextContains('Mon, 09/07/2009 - 02:20');
$assert->linkByHrefExists('http://www.example.com/blog/post/1'); $assert->linkByHrefExists('http://www.example.com/blog/post/1');
$assert->pageTextContains('Here is some text containing an interesting description.'); $assert->pageTextContains('Here is some text containing an interesting description.');
$assert->linkByHrefExists('https://drupal.org'); $assert->linkByHrefExists('https://drupal.org');
...@@ -101,7 +102,7 @@ class RssTypesTest extends WebDriverTestBase { ...@@ -101,7 +102,7 @@ class RssTypesTest extends WebDriverTestBase {
$this->drupalGet('<front>'); $this->drupalGet('<front>');
// Verify page output. // Verify page output.
$assert->elementTextContains('css', '#block-stark-feedblocktest h2', 'Feed Block Test'); $assert->elementTextContains('css', '#block-stark-feedblocktest h2', 'Feed Block Test');
$assert->pageTextContains('Fri, 01/11/2019 - 06:26'); $assert->pageTextContains('Amazon Playbook: Strategy for Alexa');
$assert->linkByHrefExists('https://www.youtube.com/watch?v=ujn7w42ZZPY'); $assert->linkByHrefExists('https://www.youtube.com/watch?v=ujn7w42ZZPY');
$assert->linkByHrefExists('https://drupal.org'); $assert->linkByHrefExists('https://drupal.org');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment