public function testNodeCreate() { $node = (object) ['title' => $this->driver->getRandom()->string(), 'type' => 'article']; $this->driver->createNode($node); $session = $this->getSession(); $session->visit(static::$uri . '/node/' . $node->nid); $this->assertTrue($session->getPage()->hasContent($node->title)); }
public static function setUpBeforeClass() { self::$driver = new DrupalDriver(static::$drupalRoot, static::$uri); self::$driver->setCoreFromVersion(); self::$driver->bootstrap(); }