FeedTypeListBuilderTest.php in Feeds 8.3
File
tests/src/Functional/FeedTypeListBuilderTest.php
View source
<?php
namespace Drupal\Tests\feeds\Functional;
class FeedTypeListBuilderTest extends FeedsBrowserTestBase {
public function testUi() {
$this
->drupalGet('/admin/structure/feeds');
$this
->assertSession()
->elementNotExists('css', '.messages--warning');
$this
->assertSession()
->elementNotExists('css', '.messages--error');
$this
->assertSession()
->pageTextNotContains('The website encountered an unexpected error.');
$this->feedType = $this
->createFeedType([
'id' => 'my_feed_type',
'label' => 'My feed type',
]);
$this
->drupalGet('/admin/structure/feeds');
$session = $this
->assertSession();
$session
->pageTextContains('My feed type');
$session
->linkExists('Edit');
$session
->linkByHrefExists('/admin/structure/feeds/manage/my_feed_type');
$session
->linkExists('Mapping');
$session
->linkByHrefExists('/admin/structure/feeds/manage/my_feed_type/mapping');
$session
->linkExists('Delete');
$session
->linkByHrefExists('/admin/structure/feeds/manage/my_feed_type/delete');
}
}