public function SchedulerDrushTest::testDrushEntityUpdate in Scheduler 2.x
Tests the Entity Update command.
File
- tests/
src/ Functional/ SchedulerDrushTest.php, line 75
Class
- SchedulerDrushTest
- Tests the Drush commands provided by Scheduler.
Namespace
Drupal\Tests\scheduler\FunctionalCode
public function testDrushEntityUpdate() {
// This test could be expanded to check the full functionality of the
// entityUpdate() function. But initially, just call the function to check
// that it runs, and produces the 'nothing to update' message.
$this
->drush('scheduler:entity-update');
$messages = $this
->getErrorOutput();
$this
->assertStringContainsString('Scheduler entity update - nothing to update', $messages, 'Error! Entity update message not found', TRUE);
}