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()); }