public function setUp() { parent::setUp(); $this->ctable = new ClosureTable(); $this->ancestorColumn = $this->ctable->getAncestorColumn(); $this->descendantColumn = $this->ctable->getDescendantColumn(); $this->depthColumn = $this->ctable->getDepthColumn(); }
public function setUp() { parent::setUp(); // TODO: Remove this when Laravel fixes the issue with model booting in tests if (self::$force_boot) { Entity::boot(); Page::boot(); } else { self::$force_boot = true; } $this->entity = new Entity(); $this->entity->fillable(['title', 'excerpt', 'body', 'position', 'real_depth']); $this->childrenRelationIndex = $this->entity->getChildrenRelationIndex(); }