/** * @param $user_hash * * @return mixed */ private static function getUser($user_hash) { $user = new User(); if ($user->get($user_hash)) { self::$user = $user; } else { Cookie::clear(config('cookie')['name']); } }
public function dropUserByHash($hash) { $user = new User(); return $user->delete($hash); }
public function testCreateInValid() { $fixture_user_data = Yaml::parse(file_get_contents($this->users_fixtures_path)); $user = new User(); $this->assertEquals(false, $user->create($fixture_user_data['model_not_valid_user_data'])); }