public function testReceivesValidValuesWhenInsertedBefore() { $target = $this->findCategory('apple'); $node = new Category(['name' => 'test']); $node->beforeNode($target)->save(); $this->assertTrue($node->hasMoved()); $this->assertEquals(array($target->_lft, $target->_lft + 1, $target->parent->id), $this->nodeValues($node)); $this->assertTreeNotBroken(); }