<?php
-/**
- * @file
- * Definition of Drupal\php\Tests\PhpTestBase.
- */
-
namespace Drupal\php\Tests;
use Drupal\simpletest\WebTestBase;
* Node object.
*/
public function createNodeWithCode() {
- return $this->drupalCreateNode(['body' => [['value' => '<?php print "SimpleTest PHP was executed!"; ?>']]]);
+ return $this->drupalCreateNode(['body' => [['value' => '<?php print "SimpleTest PHP was executed!";print "Current state is " . Drupal::state()->get("php_state_test", "empty"); ?>']]]);
}
}