- return $this->actingAs($this->getEditor());
- }
-
-
- /**
- * Get a editor user.
- * @return mixed
- */
- public function getEditor() {
- if($this->editor === null) {
- $editorRole = Role::getRole('editor');
- $this->editor = $editorRole->users->first();
- }
- return $this->editor;