public function FeedsDrushCommandsTest::providerFeed in Feeds 8.3
Data provider for ::testFeedCommandFailures().
File
- tests/
src/ Functional/ Commands/ FeedsDrushCommandsTest.php, line 267
Class
- FeedsDrushCommandsTest
- @coversDefaultClass \Drupal\feeds\Commands\FeedsDrushCommands @group feeds
Namespace
Drupal\Tests\feeds\Functional\CommandsCode
public function providerFeed() {
$return = [];
$commands = [
'feeds:enable',
'feeds:disable',
'feeds:import',
'feeds:lock',
'feeds:unlock',
];
foreach ($commands as $command) {
$return[$command . ':no-feed'] = [
'expected_output' => 'Please specify the ID of the feed',
'command' => $command,
];
$return[$command . ':non-existing-feed'] = [
'expected_output' => 'There is no feed with id 25',
'command' => $command,
'args' => [
25,
],
];
}
return $return;
}