diff --git a/core/modules/system/src/Tests/Update/UpdatePathTest.php b/core/modules/system/src/Tests/Update/UpdatePathTest.php new file mode 100644 index 0000000..89d4dd4 --- /dev/null +++ b/core/modules/system/src/Tests/Update/UpdatePathTest.php @@ -0,0 +1,48 @@ +databaseDumpFiles = [__DIR__ . '/../../../tests/fixtures/update/drupal-8.filled.standard.php.gz']; + parent::setUp(); + } + + /** + * Tests that the Site Name was properly updated. + */ + public function testUpdateSiteName() { + $this->runUpdates(); + $this->assertEqual(\Drupal::config('system.site')->get('name'), 'Site-Install'); + $this->drupalGet(''); + $this->assertText('Site-Install'); + } + + /** + * Tests that the Article was properly updated. + */ + public function testUpdateArticle() { + $this->runUpdates(); + $node = Node::load(1); + $this->assertEqual($node->title, 'Test Article - New title'); + $this->drupalGet('node/1'); + $this->assertText('Test Article - New title'); + } + +}