當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ApiTester::successfullyGet方法代碼示例

本文整理匯總了PHP中ApiTester::successfullyGet方法的典型用法代碼示例。如果您正苦於以下問題:PHP ApiTester::successfullyGet方法的具體用法?PHP ApiTester::successfullyGet怎麽用?PHP ApiTester::successfullyGet使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ApiTester的用法示例。


在下文中一共展示了ApiTester::successfullyGet方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: readDatum

 /**
  * Preberem zapis in preverim vsa polja
  * 
  * @depends create
  * @param ApiTester $I
  */
 public function readDatum(\ApiTester $I)
 {
     $ent = $I->successfullyGet($this->restUrl, $this->obj3['id']);
     codecept_debug($ent);
     $I->assertEquals($ent['zacetek'], '2009-09-14T00:00:00+0200');
     //konec spremenjen v +0200
     $ent = $I->successfullyGet($this->restUrl, $this->obj2['id']);
     $I->assertEquals($ent['zacetek'], '2003-02-01T00:00:00+0100');
 }
開發者ID:ifigenija,項目名稱:server,代碼行數:15,代碼來源:TimeZoneCest.php

示例2: read

 /**
  * Preberem zapis
  * 
  * @param ApiTester $I
  * @depends create
  */
 public function read(\ApiTester $I)
 {
     $ent = $I->successfullyGet($this->restUrl, $this->obj['id']);
     $I->assertEquals($ent['sifra'], 'ZZ');
     $I->assertEquals($ent['naziv'], 'uu');
     $I->assertEquals($ent['opis'], 'zz');
 }
開發者ID:ifigenija,項目名稱:server,代碼行數:13,代碼來源:ZvrstUprizoritveCest.php

示例3: read

 /**
  * Preberem zapis in preverim vsa polja
  * 
  * @depends create
  * @param ApiTester $I
  */
 public function read(\ApiTester $I)
 {
     $ent = $I->successfullyGet($this->restUrl, $this->obj1['id']);
     $I->assertGuid($ent['id']);
     $I->assertEquals($ent['oznaka'], 'AA');
     $I->assertEquals($ent['naziv'], 'uu');
     $I->assertEquals($ent['aktiven'], TRUE);
     $I->assertEquals($ent['znacka'], TRUE);
     $I->assertEquals($ent['ikona'], 'AA');
 }
開發者ID:ifigenija,項目名稱:server,代碼行數:16,代碼來源:VrstaZapisaCest.php

示例4: read

 /**
  * Preberem zapis in preverim vsa polja
  * 
  * @depends create
  * @param ApiTester $I
  */
 public function read(\ApiTester $I)
 {
     $ent = $I->successfullyGet($this->restUrl, $this->obj1['id']);
     codecept_debug($ent);
     $I->assertGuid($ent['id']);
     $I->assertEquals($ent['name'], 'TESTA');
     $I->assertEquals($ent['description'], 'to je A');
     $I->assertEquals($ent['builtIn'], false);
     //sam določi
 }
開發者ID:ifigenija,項目名稱:server,代碼行數:16,代碼來源:PermissionCest.php

示例5: read

 /**
  * Preberem abonma
  * 
  * @param ApiTester $I
  * @depends create
  */
 public function read(\ApiTester $I)
 {
     $ent = $I->successfullyGet($this->restUrl, $this->obj1['id']);
     codecept_debug($ent);
     $I->assertEquals($ent['stPredstav'], 5);
     $I->assertEquals($ent['stKuponov'], 55);
     $I->assertEquals($ent['ime'], 'zz');
     $I->assertEquals($ent['opis'], 'zz');
     $I->assertEquals($ent['kapaciteta'], 444);
     $I->assertEquals($ent['barva'], '#123456');
 }
開發者ID:ifigenija,項目名稱:server,代碼行數:17,代碼來源:AbonmaCest.php

示例6: read

 /**
  * Preberem zapis in preverim vsa polja
  * 
  * @depends create
  * @param ApiTester $I
  */
 public function read(\ApiTester $I)
 {
     $ent = $I->successfullyGet($this->restUrl, $this->obj1['id']);
     $I->assertNotEmpty($ent['id']);
     $I->assertEquals($ent['uprizoritev']['id'], $this->lookUprizoritev['id']);
     $I->assertEquals($ent['krajGostovanja'], 'zz');
     $I->assertEquals($ent['drzavaGostovanja'], $this->objDrzava1['id']);
     $I->assertEquals($ent['ustanova'], 'zz');
     $I->assertEquals($ent['datumGostovanja'], '2011-02-01T00:00:00+0100');
     $I->assertEquals($ent['ponoviInt'], 9);
     $I->assertEquals($ent['ponoviKoprInt'], 9);
     $I->assertEquals($ent['obiskInt'], 9);
     $I->assertEquals($ent['obiskKoprInt'], 9);
     $I->assertEquals($ent['zaproseno'], 9.119999999999999, "izračunano zaprošeno");
     $I->assertEquals($ent['celotnaVrednost'], 45.6);
     $I->assertEquals($ent['nasDelez'], 45.6);
     $I->assertEquals($ent['transportniStroski'], 9.119999999999999);
     $I->assertEquals($ent['dnevPrvZad'], 9.119999999999999);
     $I->assertEquals($ent['tantieme'], 9.119999999999999);
     $I->assertEquals($ent['materialni'], 9.119999999999999);
     $I->assertEquals($ent['avtorskePravice'], 0);
     $I->assertEquals($ent['avtorskiHonorarji'], 9.119999999999999);
     $I->assertEquals($ent['avtorskiHonorarjiSamoz'], 9.119999999999999);
     $I->assertEquals($ent['vlozekGostitelja'], 2.34);
     $I->assertEquals($ent['lastnaSredstva'], $ent['nasDelez'] - $ent['zaproseno'] - $ent['drugiJavni'] - $ent['vlozekGostitelja'], "lastna sredstva");
     $I->assertEquals($ent['celotnaVrednostMat'], 0);
     //        $I->assertEquals($ent['drugiViri'], 9.12);
     $I->assertEquals($ent['drugiJavni'], 9.119999999999999);
     $I->assertEquals($ent['dokument'], NULL);
     $I->assertEquals($ent['gostitelj']['id'], $this->lookPopa1['id']);
     $I->assertEquals($ent['sort'], 1);
     $I->assertEquals($ent['imaKoprodukcije'], TRUE);
 }
開發者ID:ifigenija,項目名稱:server,代碼行數:39,代碼來源:ProgramGostovanjeCest.php

示例7: readZReadZReadZaEntitetoLasnika

 /**
  * Preberem zapis in preverim vsa polja
  * 
  * @depends createZWriteZWriteZaEntitetoLasnika
  * @param ApiTester $I
  */
 public function readZReadZReadZaEntitetoLasnika(\ApiTester $I)
 {
     $I->amHttpAuthenticated(\IfiTest\AuthPage::$rikard, \IfiTest\AuthPage::$rikardPass);
     $ent = $I->successfullyGet($this->restUrl, $this->obj1['id']);
     $I->assertGuid($ent['id']);
     $resp = $I->successfullyGetList($this->restUrl . "?lastnik=" . $this->lookUprizoritev5['id'], []);
     $list = $resp['data'];
     $I->assertNotEmpty($list);
 }
開發者ID:ifigenija,項目名稱:server,代碼行數:15,代碼來源:AvtorizacijeCest.php

示例8: read

 /**
  * Preberem zapis in preverim vsa polja
  * 
  * @depends create
  * @param ApiTester $I
  */
 public function read(\ApiTester $I)
 {
     $ent = $I->successfullyGet($this->restUrl, $this->obj3['id']);
     $I->assertGuid($ent['id']);
     $I->assertEquals($ent['delez'], 1700.0);
     $I->assertEquals($ent['odstotekFinanciranja'], 15.89);
     //$$ odvisno od  celotne vrednosti
     $I->assertEquals($ent['enotaPrograma'], $this->objProgramPremiera2['id']);
     $I->assertEquals($ent['koproducent'], $this->lookProdukcijskaHisa2['id']);
     $I->assertEquals($ent['kpe'], 0.1);
 }
開發者ID:ifigenija,項目名稱:server,代碼行數:17,代碼來源:ProdukcijaDelitevCest.php

示例9: read

 /**
  * Preberem zapis in preverim vsa polja
  * 
  * @depends create
  * @param ApiTester $I
  */
 public function read(\ApiTester $I)
 {
     $ent = $I->successfullyGet($this->restUrl, $this->obj1['id']);
     $I->assertNotEmpty($ent['id']);
     $I->assertEquals($ent['sifra'], 'ZZ');
     $I->assertEquals($ent['naziv'], 'yy');
     $I->assertEquals($ent['koprodukcija'], FALSE);
     $I->assertEquals($ent['maxFaktor'], 0.75);
     $I->assertEquals($ent['maxVsi'], 0.86);
 }
開發者ID:ifigenija,項目名稱:server,代碼行數:16,代碼來源:TipProgramskeEnoteCest.php

示例10: read

 /**
  * Preberem zapis in preverim vsa polja
  * 
  * @depends create
  * @param ApiTester $I
  */
 public function read(\ApiTester $I)
 {
     $ent = $I->successfullyGet($this->restUrl, $this->obj1['id']);
     $I->assertGuid($ent['id']);
     $I->assertEquals($ent['mapa'], $this->lookMapa1['id']);
     $I->assertEquals($ent['perm'], $this->lookPermission1['id'], "permission");
     $I->assertEquals($ent['dostop'], 'W');
 }
開發者ID:ifigenija,項目名稱:server,代碼行數:14,代碼來源:MapaAclCest.php

示例11: read

 /**
  * Preberem zapis in preverim vsa polja
  * 
  * @depends create
  * @param ApiTester $I
  */
 public function read(\ApiTester $I)
 {
     $ent = $I->successfullyGet($this->restUrl, $this->obj1['id']);
     codecept_debug($ent);
     $zacetek = '2014-05-01T20:00:00+0200';
     // ker je začetek, bo tudi dogodek kreiral
     $I->assertGuid($ent['id']);
     $I->assertEquals($ent['vrsta'], 'uu');
     $I->assertEquals($ent['drzava'], $this->lookDrzava1);
     $I->assertEquals($ent['title'], "Gostovanje {$zacetek}");
     $I->assertEquals($ent['status'], '200s');
     $I->assertEquals($ent['zacetek'], $zacetek);
     $I->assertEquals($ent['konec'], '2014-05-20T23:00:00+0200');
     $I->assertEquals($ent['sezona'], $this->lookSezona2014['id']);
     $I->assertEquals($ent['barva'], '#123456', "barva");
     $I->assertEquals($ent['kraj'], 'zzCity');
     $I->assertEquals($ent['zamejstvo'], true);
     $I->assertTrue(isset($ent['podrejeniDogodki']));
     $I->assertEquals(4, count($ent['podrejeniDogodki']), "število podrejenih dogodkov (2+2)");
     $I->assertEquals($ent['dogodek']['id'], $this->objDogodek['id']);
     $I->assertEquals(3, count($ent['dogodek']['terminiStoritve']), "število terminov storitve");
 }
開發者ID:ifigenija,項目名稱:server,代碼行數:28,代碼來源:GostovanjeCest.php

示例12: read

 /**
  * Preberem zapis in preverim vsa polja
  * 
  * @depends create
  * @param ApiTester $I
  */
 public function read(\ApiTester $I)
 {
     $ent = $I->successfullyGet($this->restUrl, $this->obj1['id']);
     $I->assertNotEmpty($ent['id']);
     $I->assertEquals($ent['opis'], 'yy');
     $I->assertEquals($ent['naziv'], 'zz');
     $I->assertEquals($ent['vrednostDo'], 1.23);
     $I->assertEquals($ent['vrednostNa'], 4.56);
     $I->assertEquals($ent['sort'], 1);
     $I->assertEquals($ent['tipstroska'], 'materialni', "tip stroška");
     $I->assertEquals($ent['vrstaStroska'], $this->objVrstaStroska1['id'], "vrsta stroška");
     $I->assertEquals($ent['uprizoritev'], $this->lookUprizoritev['id'], "uprizoritev");
     $I->assertEquals($ent['popa'], $this->lookPopa['id']);
 }
開發者ID:ifigenija,項目名稱:server,代碼行數:20,代碼來源:StrosekUprizoritveCest.php

示例13: read

 /**
  * Preberem zapis in preverim vsa polja
  * 
  * @depends update
  * @param ApiTester $I
  */
 public function read(\ApiTester $I)
 {
     $ent = $I->successfullyGet($this->restUrl, $this->obj1['id']);
     $I->assertGuid($ent['id']);
     $I->assertEquals($ent['zacetek'], '2015-02-01T09:00:00+0100');
     $I->assertEquals($ent['konec'], '2015-02-01T15:00:00+0100');
     $I->assertEquals($ent['oseba'], $this->lookOseba1['id']);
     $I->assertEquals($ent['terminStoritve'], NULL);
 }
開發者ID:ifigenija,項目名稱:server,代碼行數:15,代碼來源:UraCest.php

示例14: preberiRoloSteviloPermissionov

 /**
  * Preverim, ali ima vloga odvzeti obe dovoljenji
  * 
  * @depends userRevokeDvaPermissiona
  * @param ApiTester $I
  */
 public function preberiRoloSteviloPermissionov(\ApiTester $I)
 {
     $role = $I->successfullyGet($this->restUrl, $this->obj['id']);
     $I->assertNotEmpty($role);
     $I->assertTrue(isset($role['permissions']));
     $I->assertEquals(0, count($role['permissions']));
 }
開發者ID:ifigenija,項目名稱:server,代碼行數:13,代碼來源:RoleCest.php

示例15: read

 /**
  * Preberem zapis in preverim vsa polja
  * 
  * @depends create
  * @param ApiTester $I
  */
 public function read(\ApiTester $I)
 {
     $ent = $I->successfullyGet($this->restUrl, $this->obj1['id']);
     $I->assertGuid($ent['id']);
     $I->assertEquals($ent['naslovPE'], 'zz');
     $I->assertEquals($ent['avtorPE'], 'uu');
     $I->assertEquals($ent['obsegPE'], 'zz');
     $I->assertEquals($ent['mesecPE'], 'zz');
     $I->assertEquals($ent['vrednostPE'], 100.11);
     $I->assertEquals($ent['obiskDoma'], 55);
     $I->assertEquals($ent['stDogodkov'], 2);
     $I->assertEquals($ent['programRazno'], $this->objProgramRazno1['id']);
 }
開發者ID:ifigenija,項目名稱:server,代碼行數:19,代碼來源:ProgramskaEnotaSklopaCest.php


注:本文中的ApiTester::successfullyGet方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。