function AnnounceFetcherUnitTest::testValidateUrl
Same name in other branches
- 10 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\UnitCode
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.