/**
  * @test
  */
 public function shouldReturnOwnUserFilterWhenNotHavingAdminRights()
 {
     $this->loggedInUser->shouldReceive('isAdminUser')->andReturn(false);
     $this->loggedInUser->shouldReceive('username')->andReturn('test1');
     $filter = $this->filterFactory->createFrom('admin,elton,test1', date('d-m-Y H:i:s'), date('d-m-Y H:i:s'));
     $this->assertSame(['test1'], $filter->users()->asArray());
 }
 /**
  * @return boolean
  */
 private function isAllowedToViewOtherUsers()
 {
     return $this->loggedInUser->isAdminUser();
 }