/**
  * @expectedException Dimsav\Nested\Exceptions\DuplicateCoordinateException
  * @test
  */
 public function validation_caches_duplicated_left_right_values()
 {
     $category = Category::find(1);
     $category->rght = $category->rght - 1;
     $category->save();
     $category->validate();
 }
Exemple #2
0
 public function testRunningMigration()
 {
     $country = Category::find(1);
     $this->assertEquals('Sciences', $country->name);
 }