function AnnounceFetcherUserTest::providerShowUpdatedAnnouncements
Same name in other branches
- 11.x core/modules/announcements_feed/tests/src/Kernel/AnnounceFetcherUserTest.php \Drupal\Tests\announcements_feed\Kernel\AnnounceFetcherUserTest::providerShowUpdatedAnnouncements()
Data provider for testAllAnnouncements().
1 call to AnnounceFetcherUserTest::providerShowUpdatedAnnouncements()
- 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 145
Class
- AnnounceFetcherUserTest
- @coversDefaultClass \Drupal\announcements_feed\AnnounceFetcher
Namespace
Drupal\Tests\announcements_feed\KernelCode
public function providerShowUpdatedAnnouncements() : array {
return [
[
'id' => '1005',
'title' => 'Drupal security update Test new',
'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' => '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.