diff -u b/core/modules/node/lib/Drupal/node/Tests/NodeAccessLanguageTest.php b/core/modules/node/lib/Drupal/node/Tests/NodeAccessLanguageTest.php --- b/core/modules/node/lib/Drupal/node/Tests/NodeAccessLanguageTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/NodeAccessLanguageTest.php @@ -98,7 +98,7 @@ // Reset the node access cache and turn on our test node access code. \Drupal::entityManager()->getAccessController('node')->resetCache(); - \Drupal::state()->set('node_access_test_secret_catalan', 1); + variable_set('node_access_test_secret_catalan', 1); $node_public_ca = $this->drupalCreateNode(array('body' => array(array()), 'langcode' => 'ca', 'private' => FALSE)); $this->assertTrue($node_public_ca->language()->id == 'ca', 'Node created as Catalan.');