UpdatePathTest.php in Lightning Media 8.3
File
tests/src/Functional/UpdatePathTest.php
View source
<?php
namespace Drupal\Tests\lightning_media\Functional;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
use Drush\TestTraits\DrushTestTrait;
class UpdatePathTest extends UpdatePathTestBase {
use DrushTestTrait;
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../fixtures/1.0.0-rc2.php.gz',
];
}
public function testUpdatePath() {
$this
->getRandomGenerator()
->image('public://star_0.png', '16x16', '16x16');
$this->container
->get('plugin.cache_clearer')
->clearCachedDefinitions();
$this
->runUpdates();
$this
->drush('update:lightning', [], [
'yes' => NULL,
]);
}
}