示例#1
0
 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());
     }
 }
示例#2
0
 protected function getFirstNode()
 {
     return Node::first();
 }