Пример #1
0
 public function testNewClusterWithNullParent()
 {
     $node = new Cluster(['name' => 'Root 3']);
     $this->assertTrue($node->isRoot());
     $node->save();
     $this->assertTrue($node->isRoot());
     $node->makeRoot();
     $this->assertTrue($node->isRoot());
 }