当前位置: 首页>>代码示例>>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;未经允许,请勿转载。