/** * @expectedException \yii\base\Exception */ public function testMakeRootNewExceptionIsRaisedWhenTreeAttributeIsFalseAndRootIsExists() { $node = new Node(['slug' => 'r']); $node->makeRoot()->save(); }