public function EntityDefinitionUpdateTest::testNoUpdates in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/KernelTests/Core/Entity/EntityDefinitionUpdateTest.php \Drupal\KernelTests\Core\Entity\EntityDefinitionUpdateTest::testNoUpdates()
Tests when no definition update is needed.
File
- core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityDefinitionUpdateTest.php, line 101
Class
- EntityDefinitionUpdateTest
- Tests EntityDefinitionUpdateManager functionality.
Namespace
Drupal\KernelTests\Core\EntityCode
public function testNoUpdates() {
// Ensure that the definition update manager reports no updates.
$this
->assertFalse($this->entityDefinitionUpdateManager
->needsUpdates(), 'EntityDefinitionUpdateManager reports that no updates are needed.');
$this
->assertIdentical($this->entityDefinitionUpdateManager
->getChangeSummary(), [], 'EntityDefinitionUpdateManager reports an empty change summary.');
$this
->assertIdentical($this->entityDefinitionUpdateManager
->getChangeList(), [], 'EntityDefinitionUpdateManager reports an empty change list.');
}