function AnnounceFetcherUserTest::providerShowAnnouncements
Same name in other branches
- 11.x core/modules/announcements_feed/tests/src/Kernel/AnnounceFetcherUserTest.php \Drupal\Tests\announcements_feed\Kernel\AnnounceFetcherUserTest::providerShowAnnouncements()
Data provider for testAllAnnouncements().
1 call to AnnounceFetcherUserTest::providerShowAnnouncements()
- AnnounceFetcherUserTest::testAllAnnouncementsFirst in core/
modules/ announcements_feed/ tests/ src/ Kernel/ AnnounceFetcherUserTest.php - Tests testAllAnnouncements should get all announcements.
File
-
core/
modules/ announcements_feed/ tests/ src/ Kernel/ AnnounceFetcherUserTest.php, line 88
Class
- AnnounceFetcherUserTest
- @coversDefaultClass \Drupal\announcements_feed\AnnounceFetcher
Namespace
Drupal\Tests\announcements_feed\KernelCode
public function providerShowAnnouncements() : array {
return [
[
'id' => '1001',
'title' => 'Drupal security update Test',
'url' => 'https://www.drupal.org/project/announce',
'content_html' => 'Test teaser 1',
'_drupalorg' => [
'featured' => TRUE,
'version' => '^10',
],
'date_modified' => date('c', 1611041378),
'date_published' => date('c', 1610958578),
],
[
'id' => '1002',
'title' => 'Drupal security update Test',
'url' => 'https://www.drupal.org/project/announce',
'content_html' => 'Test teaser 2',
'_drupalorg' => [
'featured' => TRUE,
'version' => '^10',
],
'date_modified' => date('c', 1611041378),
'date_published' => date('c', 1610958578),
],
[
'id' => '1003',
'title' => 'Drupal security update Test',
'url' => 'https://www.drupal.org/project/announce',
'content_html' => 'Test teaser 3',
'_drupalorg' => [
'featured' => TRUE,
'version' => '^10',
],
'date_modified' => date('c', 1611041378),
'date_published' => date('c', 1610958578),
],
[
'id' => '1004',
'title' => 'Drupal security update Test',
'url' => 'https://www.drupal.org/project/announce',
'content_html' => 'Test teaser 4',
'_drupalorg' => [
'featured' => TRUE,
'version' => '^10',
],
'date_modified' => date('c', 1611041378),
'date_published' => date('c', 1610958578),
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.