Example #1
0
 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();
 }