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