public function testNode() { $this->get('/user/node'); $this->assertEquals('200', $this->response->getStatusCode()); $node = Node::first(); if ($node != null) { $this->get("/user/node/{$node->id}"); $this->assertEquals('200', $this->response->getStatusCode()); } }
protected function getFirstNode() { return Node::first(); }