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