function AnnounceFetcherUnitTest::testValidateUrl
Test the ValidateUrl() method.
@legacy-covers \Drupal\announcements_feed\AnnounceFetcher::validateUrl
Attributes
#[DataProvider('urlProvider')]
File
-
core/
modules/ announcements_feed/ tests/ src/ Unit/ AnnounceFetcherUnitTest.php, line 52
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.