/** * @expectedException \Illuminate\Database\Eloquent\ModelNotFoundException */ public function testRebuildFailsWithInvalidPK() { Category::rebuildTree([['id' => 24]]); }