function AnnounceFetcherUnitTest::testValidateUrl

Same name in other branches
  1. 11.x core/modules/announcements_feed/tests/src/Unit/AnnounceFetcherUnitTest.php \Drupal\Tests\announcements_feed\Unit\AnnounceFetcherUnitTest::testValidateUrl()

Test the ValidateUrl() method.

@covers \Drupal\announcements_feed\AnnounceFetcher::validateUrl

@dataProvider urlProvider

File

core/modules/announcements_feed/tests/src/Unit/AnnounceFetcherUnitTest.php, line 53

Class

AnnounceFetcherUnitTest
Simple test to ensure that asserts pass.

Namespace

Drupal\Tests\announcements_feed\Unit

Code

public function testValidateUrl($url, $isValid) : void {
    $this->assertEquals($isValid, $this->fetcher
        ->validateUrl($url));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.