+
+ // Verify that cache is disabled for PHP evaluates.
+ $this->assertText('Current state is empty', 'PHP code has been evaluated once.');
+ \Drupal::state()->set('php_state_test', 'not empty');
+ $this->drupalGet('node/' . $node->id());
+ $this->assertText('Current state is not empty', 'PHP code has been evaluated again.');