/** * @test */ public function shouldSetSessionId() { //when Session::connect('http://localhost/SugarCE-Full-6.5.17/service/v4_1/rest.php', 'admin', '123qwe'); //then $this->assertNotNull(Session::$sessionId); }
public static function __callStatic($name, $arguments) { Session::checkSession(); $dynamicFinder = DynamicFinder::match($name); if ($dynamicFinder) { $where = Arrays::combine($dynamicFinder->getNames(), $arguments); return static::where($where); } throw new BadMethodCallException('Method [' . $name . '] not exists'); }
public function setUp() { parent::setUp(); Session::connect('http://localhost/SugarCE-Full-6.5.17/service/v4_1/rest.php', 'admin', 'piotr123'); }
private function doFetchRequest() { Session::checkSession(); return Request::call(Requests::getEntryList($this->module->getModuleName(), $this->prepareWhere(), $this->fields, $this->orderClause)); }