当前位置: 首页>>代码示例>>PHP>>正文


PHP ApiTester::assertGuid方法代码示例

本文整理汇总了PHP中ApiTester::assertGuid方法的典型用法代码示例。如果您正苦于以下问题:PHP ApiTester::assertGuid方法的具体用法?PHP ApiTester::assertGuid怎么用?PHP ApiTester::assertGuid使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ApiTester的用法示例。


在下文中一共展示了ApiTester::assertGuid方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: 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

示例2: 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

示例3: dodajVecPostnihNaslovov

 /**
  * Dodam poštni naslov na osebo 
  * @depends create 
  * 
  * @param ApiTester $I
  */
 public function dodajVecPostnihNaslovov(\ApiTester $I)
 {
     codecept_debug($this->lookDrzavaId);
     $data = ["oseba" => $this->obj1['id'], "naziv" => "privzeti naslov", "ulica" => "cmd", "posta" => "2250", "postaNaziv" => "Ptuj", "pokrajina" => "Štajerska", "drzava" => $this->lookDrzavaId];
     $I->assertTrue(true, "začasno");
     $this->objpostni = $ent = $I->successfullyCreate($this->naslUrl, $data);
     codecept_debug($ent);
     $I->assertGuid($ent['id']);
     $data = ["oseba" => $this->obj1['id'], "naziv" => "naslov1", "ulica" => "cmd 16", "ulicaDva" => "cankarjeva 16", "posta" => "2250", "postaNaziv" => "Ptuj", "pokrajina" => "Štajerska", "drzava" => $this->lookDrzavaId];
     $this->objpostni2 = $ent = $I->successfullyCreate($this->naslUrl, $data);
     $I->assertGuid($ent['id']);
     codecept_debug($ent);
     $data = ["oseba" => $this->obj2['id'], "naziv" => "naslov2", "ulica" => "prešernova 32", "ulicaDva" => "cankarjeva 16", "posta" => "2250", "postaNaziv" => "Ptuj", "pokrajina" => "Štajerska", "drzava" => $this->lookDrzava['id']];
     $this->objpostni3 = $ent = $I->successfullyCreate($this->naslUrl, $data);
     $I->assertGuid($ent['id']);
     codecept_debug($ent);
 }
开发者ID:ifigenija,项目名称:server,代码行数:23,代码来源:OsebaCest.php

示例4: 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

示例5: 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

示例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->assertGuid($ent['id']);
     $I->assertEquals($ent['skupina'], 100);
     $I->assertEquals($ent['podskupina'], 102);
     $I->assertEquals($ent['naziv'], 'aa');
     $I->assertEquals($ent['opis'], 'yy');
 }
开发者ID:ifigenija,项目名称:server,代码行数:15,代码来源:VrstaStroskaCest.php

示例7: 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['status'], 'A');
     $I->assertEquals($ent['zacetek'], '2010-02-01T00:00:00+0100');
     $I->assertEquals($ent['konec'], '2010-02-01T00:00:00+0100');
     $I->assertEquals($ent['delovnaObveza'], 2);
     $I->assertEquals($ent['izmenskoDelo'], true);
     $I->assertEquals("XXX", $ent['delovnoMesto']);
     $I->assertEquals($ent['individualnaPogodba'], true);
     $I->assertEquals($ent['jeZaposlenVdrugemJz'], TRUE);
     $I->assertEquals($ent['jeNastopajoci'], TRUE);
     $I->assertEquals($ent['oseba']['id'], $this->lookOseba1['id']);
     $I->assertEquals($ent['organizacijskaEnota'], $this->objOrgEnota1['id']);
     /**
      * še preverjanja avtorizacij, posebnih dovoljenj
      */
     $entOs = $this->obj4;
     $I->assertNotNull($entOs['oseba']);
     /*
      * uporabnik brez OsebniPodatki-read dovoljenja
      */
     $I->amHttpAuthenticated(\IfiTest\AuthPage::$rudi, \IfiTest\AuthPage::$rudiPass);
     $resp = $I->failToGet($this->restUrl, $entOs['id']);
     codecept_debug($resp);
     $I->assertEquals(100099, $resp[0][0]['code']);
     /*
      * uporabnik z OsebniPodatki-read dovoljenjem
      */
     $I->amHttpAuthenticated(\IfiTest\AuthPage::$cene, \IfiTest\AuthPage::$cenePass);
     $ent = $I->successfullyGet($this->restUrl, $entOs['id']);
 }
开发者ID:ifigenija,项目名称:server,代码行数:40,代码来源:ZaposlitevCest.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->obj1['id']);
     codecept_debug($ent);
     $I->assertGuid($ent['id']);
     $I->assertEquals($ent['ime'], 'aa');
     $I->assertEquals($ent['komentar'], 'uu');
     $I->assertEquals($ent['lastnik'], $this->lookUser2['id']);
     $I->assertEquals($ent['javniDostop'], 'R', "javni dostop");
     $I->assertEquals($ent['parent'], $this->lookMapa1['id']);
 }
开发者ID:ifigenija,项目名称:server,代码行数:17,代码来源:MapaCest.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->assertGuid($ent['id']);
     $I->assertEquals($ent['lastnik'], $this->lookUprizoritev3['id']);
     $I->assertEquals($ent['classLastnika'], "Uprizoritev");
     $I->assertEquals($ent['zapis'], null);
     //        $I->assertEquals($ent['upor'], \Page\AuthPage::$admin);       //$$ to bo še za implementirati
 }
开发者ID:ifigenija,项目名称:server,代码行数:15,代码来源:ZapisLastnikCest.php

示例10: read

 /**
  * Preberem zapis in preverim vsa polja
  * 
  * @depends create
  * @param ApiTester $I
  */
 public function read(\ApiTester $I)
 {
     $this->obj1 = $ent = $I->successfullyGet($this->restUrl, $this->obj1['id']);
     codecept_debug($ent);
     $I->assertGuid($ent['id']);
     $I->assertEquals($ent['ime'], 'uu');
     $I->assertEquals($ent['dan'], 22);
     $I->assertEquals($ent['mesec'], 8);
     $I->assertEquals($ent['leto'], 2006);
     $I->assertEquals($ent['delaProst'], true);
 }
开发者ID:ifigenija,项目名称:server,代码行数:17,代码来源:PraznikCest.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']);
     $I->assertGuid($ent['id']);
     codecept_debug($ent['sifra']);
     $I->assertEquals(substr($ent['sifra'], 0, 2), '20', "šifra 0-1");
     $I->assertEquals(substr($ent['sifra'], 4, 1), '-', "šifra 0-1");
     $I->assertEquals($ent['naziv'], 'yy');
     $I->assertEquals($ent['zacetek'], '2015-02-01T00:00:00+0100');
     $I->assertEquals($ent['konec'], '2016-02-01T00:00:00+0100');
     $I->assertEquals($ent['potrjenProgram'], false);
     //        $I->assertEquals($ent['avgZasedDvoran'], 7.89);
     $I->assertEquals($ent['avgCenaVstopnice'], 7.89);
     $I->assertEquals($ent['stProdVstopnic'], 7);
     $I->assertEquals($ent['stZaposlenih'], 7);
     $I->assertEquals($ent['stZaposIgralcev'], 7);
     //        $I->assertEquals($ent['avgStNastopovIgr'], 7.89);
     //        $I->assertEquals($ent['vrPS1Mat'], 7.89);
     //        $I->assertEquals($ent['vrPS1GostovSZ'], 7.89);
     //        $I->assertEquals($ent['stHonorarnihZun'], 7);
     //        $I->assertEquals($ent['stHonorarnihZunIgr'], 7);
     //        $I->assertEquals($ent['stHonorarnihZunIgrTujJZ'], 7);
     //        $I->assertEquals($ent['sredstvaInt'], 7.89);
 }
开发者ID:ifigenija,项目名称:server,代码行数:30,代码来源:ProgramDelaCest.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']);
     codecept_debug($ent);
     $I->assertGuid($ent['id']);
     $I->assertEquals($ent['podrocje'], $this->lookTipFunkcije1Um['podrocje'], "področje iz tipa funkcije");
     $I->assertEquals($ent['vodjaEkipe'], FALSE);
     $I->assertEquals($ent['naziv'], 'zz');
     $I->assertEquals($ent['komentar'], 'zz');
     $I->assertEquals($ent['velikost'], 'mala', "velikost funkcije");
     $I->assertEquals($ent['pomembna'], true);
     $I->assertEquals($ent['sort'], 8);
     $I->assertEquals($ent['uprizoritev'], $this->lookUprizoritev1['id']);
     $I->assertEquals($ent['privzeti'], $this->objAlternacija['id'], "privzeti");
     $I->assertEquals($ent['tipFunkcije'], $this->lookTipFunkcije1Um['id'], "tip funkcije");
     $I->assertEquals($ent['maxPrekrivanj'], 3, "maks prekrivanj");
     $I->assertTrue(isset($ent['alternacije']));
     $I->assertEquals(0, count($ent['alternacije']));
 }
开发者ID:ifigenija,项目名称:server,代码行数:25,代码来源:FunkcijaCest.php

示例13: read

 /**
  * Preberem zapis in preverim vsa polja
  * 
  * @depends create
  * @param ApiTester $I
  */
 public function read(\ApiTester $I)
 {
     $ent = $I->successfullyGet($this->restUrlDefault, $this->obj1['id']);
     codecept_debug($ent);
     $I->assertGuid($ent['id']);
     $I->assertEquals($ent['planiranZacetek'], '2012-08-01T18:00:00+0200');
     $I->assertEquals($ent['planiranKonec'], '2012-08-01T23:30:00+0200');
     $I->assertEquals($ent['zasedenost'], TRUE, 'zasedenost');
     $I->assertEquals($ent['oseba']['id'], $this->lookOseba1['id']);
     $I->assertEquals($ent['deltaPlaniranZacetek'], null);
     $I->assertEquals($ent['deltaPlaniranKonec'], null);
     $I->assertEquals($ent['dogodek'], null);
     $I->assertEquals($ent['alternacija'], null);
     $I->assertEquals($ent['dezurni'], false);
     $I->assertEquals($ent['gost'], false);
     $I->assertEquals($ent['virtZasedenost'], false);
 }
开发者ID:ifigenija,项目名称:server,代码行数:23,代码来源:TerminStoritveCest.php

示例14: 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['naziv'], 'zz');
     $I->assertEquals($ent['celotnaVrednost'], 4.96);
     $I->assertEquals($ent['nasDelez'], 4.96);
     $I->assertEquals($ent['zaproseno'], 1.22, "zaprošeno");
     $I->assertEquals($ent['vlozekGostitelja'], 0);
     $I->assertEquals($ent['lastnaSredstva'], $ent['nasDelez'] - $ent['zaproseno'] - $ent['drugiJavni'] - $ent['vlozekGostitelja'], "lastna sredstva");
     $I->assertEquals($ent['avtorskiHonorarji'], 1.24);
     $I->assertEquals($ent['avtorskiHonorarjiSamoz'], 1.24);
     $I->assertEquals($ent['tantieme'], 1.24);
     $I->assertEquals($ent['materialni'], 1.24);
     $I->assertEquals($ent['avtorskePravice'], 1.24);
     //        $I->assertEquals($ent['vlozekGostitelja'], 1.24);
     $I->assertEquals($ent['drugiJavni'], 1.24);
     $I->assertEquals($ent['obiskDoma'], 1);
     $I->assertEquals($ent['obiskGost'], 1);
     $I->assertEquals($ent['obiskKoprGost'], 1);
     $I->assertEquals($ent['obiskZamejo'], 1);
     $I->assertEquals($ent['obiskKoprZamejo'], 1);
     $I->assertEquals($ent['obiskInt'], 1);
     $I->assertEquals($ent['ponoviDoma'], 1);
     $I->assertEquals($ent['ponoviZamejo'], 1.5);
     $I->assertEquals($ent['ponoviKoprZamejo'], 0.5);
     $I->assertEquals($ent['ponoviGost'], 1.5);
     $I->assertEquals($ent['ponoviKoprGost'], 0.5);
     $I->assertEquals($ent['ponoviInt'], 1);
     //        $I->assertEquals($ent['uprizoritev'], NULL);
     //        $I->assertEquals($ent['tipProgramskeEnote'], $this->lookTipProgramskeEnote['id']);
     $I->assertEquals($ent['dokument'], null);
     $I->assertEquals($ent['sort'], 1, "sort");
     $I->assertEquals($ent['imaKoprodukcije'], true);
     $I->assertEquals($ent['stZaposlenih'], 1);
     //        $I->assertEquals($ent['stDrugih'], 1);
     $I->assertEquals($ent['stHonorarnihZun'], 1, "št. honorarnih");
     $I->assertEquals($ent['stHonorarnihZunIgr'], 1);
     $I->assertEquals($ent['stHonorarnihZunIgrTujJZ'], 1);
     $I->assertEquals($ent['stHonorarnihZunSamoz'], 1);
     $I->assertEquals($ent['trajanje'], "avgust-oktober");
     $I->assertEquals($ent['prizorisce'], "samostan");
     $I->assertEquals($ent['zvrst'], "zz");
     $I->assertEquals($ent['avtor'], "zz");
     $I->assertEquals($ent['reziser'], "zz");
     $I->assertEquals($ent['soustvarjalci'], "zz");
     $I->assertEquals($ent['datum'], "2012-02-01T00:00:00+0100");
 }
开发者ID:ifigenija,项目名称:server,代码行数:54,代码来源:ProgramIzjemniCest.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']);
     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


注:本文中的ApiTester::assertGuid方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。