UpdatePathTest.php in Lightning Media 8.4
File
tests/src/Functional/UpdatePathTest.php
View source
<?php
namespace Drupal\Tests\lightning_media\Functional;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
use Drupal\views\Entity\View;
use Drush\TestTraits\DrushTestTrait;
class UpdatePathTest extends UpdatePathTestBase {
use DrushTestTrait;
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../fixtures/drupal-8.8.0-update-from-1.0.0-rc2.php.gz',
];
}
public function testUpdatePath() {
$view = View::load('media');
$display =& $view
->getDisplay('default');
$display['display_options']['fields']['media_bulk_form']['plugin_id'] = 'bulk_form';
$view
->save();
$this
->runUpdates();
$this
->drush('update:lightning', [], [
'yes' => NULL,
]);
}
}