本文整理汇总了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
}
示例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');
}
示例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);
}
示例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);
}
示例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);
}
示例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');
}
示例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']);
}
示例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']);
}
示例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
}
示例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);
}
示例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);
}
示例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']));
}
示例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);
}
示例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");
}
示例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");
}