aggregator-2.x-dev/tests/src/Functional/Update/AggregatorUpdateItemsTest.php
tests/src/Functional/Update/AggregatorUpdateItemsTest.php
<?php
namespace Drupal\Tests\aggregator\Functional\Update;
use Drupal\aggregator\Entity\Item;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
/**
* Tests updates to Item entities.
*
* @group Update
* @group aggregator
*/
class AggregatorUpdateItemsTest extends UpdatePathTestBase {
/**
* {@inheritdoc}
*/
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
$this->root . '/core/modules/system/tests/fixtures/update/drupal-10.3.0.filled.standard.php.gz',
__DIR__ . '/../../../fixtures/update/aggregator.php',
];
}
/**
* @covers aggregator_update_8604
*/
public function testUpdateHookN(): void {
$this->runUpdates();
$item = Item::load(1);
if ($item instanceof Item) {
$this->assertNotNull($item->uuid());
}
else {
$this->fail('Item with ID 1 does not exist.');
}
}
}
