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


PHP ApiTester::assertNotEmpty方法代码示例

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


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

示例1: menuCatMenuLeagueNotEmptyNotNull

 public function menuCatMenuLeagueNotEmptyNotNull(ApiTester $I)
 {
     $I->sendGET($this->endpoint . SOURCE);
     $tips = $I->grabDataFromResponseByJsonPath('$.tips');
     foreach ($tips[0] as $tip) {
         $I->assertNotNull($tip['menu_cat'], 'menu_cat is NULL');
         $I->assertNotNull($tip['menu_league'], 'menu_league is NULL');
         $I->assertNotEmpty($tip['menu_cat'], 'menu_cat is empty');
         $I->assertNotEmpty($tip['menu_league'], 'menu_league is empty');
     }
 }
开发者ID:bogdanbuciu,项目名称:tester,代码行数:11,代码来源:probaCest.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->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

示例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->assertNotEmpty($ent['id']);
     $I->assertEquals($ent['dokument'], NULL);
     $I->assertEquals($ent['naziv'], 'zz');
     //        $I->assertEquals($ent['naslovPE'], 'zz');
     //        $I->assertEquals($ent['avtorPE'], 'zz');
     //        $I->assertEquals($ent['obsegPE'], 'zz');
     //        $I->assertEquals($ent['mesecPE'], 'zz');
     //        $I->assertEquals($ent['vrednostPE'], 1.24);
     $I->assertEquals($ent['stPE'], 2);
     $I->assertEquals($ent['obiskDoma'], 70);
     $I->assertEquals($ent['stDogodkov'], 4, "stDogodkov");
     $I->assertEquals($ent['stZaposlenih'], 1);
     $I->assertEquals($ent['stHonorarnihZun'], 1);
     $I->assertEquals($ent['celotnaVrednost'], 4);
     $I->assertEquals($ent['nasDelez'], 4, "naš delež kot setštevek vrednostiPE");
     $I->assertEquals($ent['lastnaSredstva'], $ent['nasDelez'] - $ent['zaproseno'] - $ent['drugiJavni'] - $ent['vlozekGostitelja'], "lastna sredstva");
     $I->assertEquals($ent['zaproseno'], 1.22, "zaprošeno");
     //        $I->assertEquals($ent['drugiViri'], 1.24);
     $I->assertEquals($ent['drugiJavni'], 1.24);
     $I->assertEquals($ent['sort'], 1, 'sort');
     $I->assertEquals($ent['avtorskiHonorarji'], 0);
     $I->assertEquals($ent['avtorskiHonorarjiSamoz'], 0);
     $I->assertEquals($ent['imaKoprodukcije'], TRUE);
 }
开发者ID:ifigenija,项目名称:server,代码行数:33,代码来源:ProgramRaznoCest.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']);
     $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

示例5: 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->assertNotEmpty($ent['sifra']);
     $I->assertEquals($ent['zacetek'], '2010-02-01T00:00:00+0100');
     $I->assertEquals($ent['konec'], '2020-02-01T00:00:00+0100');
     $I->assertEquals($ent['opomba'], 'uu');
     $I->assertEquals($ent['sort'], 1);
     $I->assertEquals($ent['privzeti'], FALSE, "privzeti");
     //vmes se je spremenilo
     $I->assertEquals($ent['funkcija']['id'], $this->lookFunkcija1Ig['id']);
     $I->assertEquals($ent['zaposlitev'], $this->objZaposlitev['id'], "zaposlitev");
     $I->assertEquals($ent['zaposlen'], true);
     // v validaciji se bi moralo postaviti na true, če je zaposlitev
     $I->assertEquals($ent['oseba']['id'], $this->lookOseba1['id'], "oseba");
     $I->assertEquals($ent['pogodba'], $this->objPogodba['id']);
     $I->assertEquals($ent['imaPogodbo'], false);
     $I->assertEquals($ent['pomembna'], true, "pomembna");
 }
开发者ID:ifigenija,项目名称:server,代码行数:26,代码来源:AlternacijaCest.php

示例6: read

 /**
  * Preberem zapis
  * 
  * @param ApiTester $I
  * @depends create
  */
 public function read(\ApiTester $I)
 {
     $ent = $I->successfullyGet($this->restUrl, $this->obj['id']);
     $I->assertNotEmpty($ent['id'], 'zz');
     $I->assertEquals($ent['naslov'], 'zz');
     $I->assertEquals($ent['podnaslov'], 'uu');
     $I->assertEquals($ent['jezik'], 'ww');
     $I->assertEquals($ent['naslovIzvirnika'], 'vv');
     $I->assertEquals($ent['podnaslovIzvirnika'], 'yy');
     $I->assertEquals($ent['moskeVloge'], 1);
     $I->assertEquals($ent['zenskeVloge'], 2);
     $I->assertEquals($ent['povzetekVsebine'], 'tt');
     $I->assertEquals($ent['letoIzida'], '1995');
     $I->assertEquals($ent['krajIzida'], 'ss');
     $I->assertEquals($ent['zaloznik'], 'rr');
     $I->assertEquals($ent['internacionalniNaslov'], 'qq');
 }
开发者ID:ifigenija,项目名称:server,代码行数:23,代码来源:BesediloCest.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']);
     $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

示例8: read

 /**
  * Preberem pogodbo 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'], 'ZZ123');
     $I->assertEquals($ent['vrednostVaj'], 33.33);
     $I->assertEquals($ent['vrednostVaje'], 22.22);
     $I->assertEquals($ent['vrednostPredstave'], 44.44);
     $I->assertEquals($ent['vrednostVaje'], 22.22);
     $I->assertEquals($ent['placiloNaVajo'], false);
     $I->assertEquals($ent['planiranoSteviloVaj'], 10);
     $I->assertEquals($ent['jeAvtorskePravice'], false, "jeAvtorskePravice");
     $I->assertEquals($ent['opis'], 'xx');
     $I->assertEquals($ent['oseba']['id'], $this->lookOseba1['id']);
     $I->assertEquals($ent['popa']['id'], $this->lookPopa1['id']);
     $I->assertEquals($ent['trr'], $this->objTrr['id']);
     $I->assertEquals($ent['zacetek'], '2012-02-01T00:00:00+0100');
     $I->assertEquals($ent['konec'], '2014-02-01T00:00:00+0100');
     $I->assertEquals($ent['zaposlenVDrJz'], true, "zaposlen v drugem JZ");
     $I->assertEquals($ent['samozaposlen'], FALSE, "samozaposlen");
     $I->assertEquals($ent['igralec'], true, "igralec");
     $I->assertEquals($ent['procentOdInkasa'], 5.1);
     $I->assertEquals($ent['jeProcentOdInkasa'], true);
     /**
      * $$ še alternacije
      */
     /**
      * še preverjanja avtorizacij, posebnih dovoljenj
      */
     $entOs = $this->obj4;
     $I->assertNotNull($entOs['oseba']);
     $I->assertNull($entOs['popa']);
     $entPoOs = $this->obj8;
     $I->assertNotNull($entPoOs['oseba']);
     $I->assertNotNull($entPoOs['popa']);
     /*
      * uporabnik brez Pogodba-read dovoljenja
      */
     $I->amHttpAuthenticated(\IfiTest\AuthPage::$breznik, \IfiTest\AuthPage::$breznikPass);
     $resp = $I->failToGet($this->restUrl, $entOs['id']);
     codecept_debug($resp);
     $I->assertEquals(100099, $resp[0][0]['code']);
     /*
      * 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']);
     /*
      * čim je od popa ni več osebni podatek 
      */
     $ent = $I->successfullyGet($this->restUrl, $entPoOs['id']);
     /*
      * uporabnik z OsebniPodatki-read dovoljenjem
      */
     $I->amHttpAuthenticated(\IfiTest\AuthPage::$cene, \IfiTest\AuthPage::$cenePass);
     $ent = $I->successfullyGet($this->restUrl, $entOs['id']);
 }
开发者ID:ifigenija,项目名称:server,代码行数:65,代码来源:PogodbaCest.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['programDela'], null);
     $I->assertEquals($ent['naziv'], 'zz');
     $I->assertEquals($ent['zvrst'], 'zz');
     $I->assertEquals($ent['stPredstav'], 1);
     $I->assertEquals($ent['stOkroglihMiz'], 1);
     $I->assertEquals($ent['stPredstavitev'], 1);
     $I->assertEquals($ent['stDelavnic'], 1);
     $I->assertEquals($ent['stDrugiDogodki'], 1);
     $I->assertEquals($ent['stProdukcij'], 1);
     $I->assertEquals($ent['obiskDoma'], 1);
     $I->assertEquals($ent['casPriprave'], 'zz');
     $I->assertEquals($ent['casIzvedbe'], 'zz');
     $I->assertEquals($ent['prizorisca'], 'zz');
     $I->assertEquals($ent['umetVodja'], 'zz');
     $I->assertEquals($ent['programskoTelo'], 'zz');
     $I->assertEquals($ent['stTujihSelektorjev'], 1);
     $I->assertEquals($ent['stZaposlenih'], 1);
     $I->assertEquals($ent['stHonorarnihZun'], 1);
     $I->assertEquals($ent['zaproseno'], 1.22, "zaprošeno");
     $I->assertEquals($ent['celotnaVrednost'], 4);
     $I->assertEquals($ent['nasDelez'], 4);
     $I->assertEquals($ent['lastnaSredstva'], $ent['nasDelez'] - $ent['zaproseno'] - $ent['drugiJavni'] - $ent['vlozekGostitelja'], "lastna sredstva");
     //        $I->assertEquals($ent['drugiViri'], 1.24);
     $I->assertEquals($ent['drugiJavni'], 1.24);
     $I->assertEquals($ent['sort'], 8);
     $I->assertEquals($ent['imaKoprodukcije'], TRUE);
     $I->assertEquals($ent['avtorskiHonorarji'], 0);
     $I->assertEquals($ent['avtorskiHonorarjiSamoz'], 0);
 }
开发者ID:ifigenija,项目名称:server,代码行数:39,代码来源:ProgramFestivalCest.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->assertNotEmpty($ent['id']);
     $I->assertEquals($ent['celotnaVrednost'], 4);
     $I->assertEquals($ent['nasDelez'], 4);
     $I->assertEquals($ent['strosekOdkPred'], 3.11);
     $I->assertEquals($ent['stroskiOstali'], 0.89);
     $I->assertEquals($ent['zaproseno'], 1.22, "zaprošeno");
     $I->assertEquals($ent['lastnaSredstva'], $ent['nasDelez'] - $ent['zaproseno'] - $ent['drugiJavni'] - $ent['vlozekGostitelja'], "lastna sredstva");
     //        $I->assertEquals($ent['tantieme'], 1.24);
     //        $I->assertEquals($ent['materialni'], 1.24);
     //        $I->assertEquals($ent['drugiViri'], 1.24);
     //        $I->assertEquals($ent['vlozekGostitelja'], 1.24);
     $I->assertEquals($ent['drugiJavni'], 1.24);
     $I->assertEquals($ent['obiskDoma'], 1);
     $I->assertEquals($ent['ponoviDoma'], 1);
     $I->assertEquals($ent['uprizoritev']['id'], $this->lookUprizoritev['id']);
     //        $I->assertEquals($ent['tipProgramskeEnote'], NULL);
     $I->assertEquals($ent['dokument'], null);
     $I->assertEquals($ent['sort'], 1);
     $I->assertEquals($ent['imaKoprodukcije'], TRUE);
     $I->assertEquals($ent['avtorskiHonorarji'], 0);
     $I->assertEquals($ent['avtorskiHonorarjiSamoz'], 0);
 }
开发者ID:ifigenija,项目名称:server,代码行数:31,代码来源:ProgramGostujocaCest.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->obj['id']);
     codecept_debug($ent);
     $I->assertNotEmpty($ent['id']);
     $I->assertEquals($ent['sifra'], '99');
     $I->assertEquals($ent['naziv'], 'B');
     $I->assertEquals($ent['vodja'], $this->objZaposlitev1['id']);
     $I->assertEquals($ent['namestnik'], $this->objZaposlitev2['id']);
     $I->assertFalse(isset($ent['parent']));
 }
开发者ID:ifigenija,项目名称:server,代码行数:17,代码来源:OrganizacijskaEnotaCest.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->obj['id']);
     codecept_debug($ent);
     $I->assertNotEmpty($ent['id']);
     $I->assertEquals($ent['faza'], 'produkcija');
     $I->assertEquals($ent['naslov'], 'zz');
     $I->assertEquals($ent['podnaslov'], 'zz');
     $I->assertEquals($ent['delovniNaslov'], 'zz');
     $I->assertEquals($ent['datumZacStudija'], '2011-02-01T00:00:00+0100');
     $I->assertEquals($ent['datumPremiere'], '2012-02-01T00:00:00+0100');
     $I->assertEquals($ent['maticniOder'], $this->lookProstor['id']);
     $I->assertEquals($ent['stOdmorov'], 1);
     //        $I->assertEquals($ent['avtor'], 'avzz');
     $I->assertEquals($ent['gostujoca'], FALSE);
     $I->assertEquals($ent['trajanje'], 2);
     $I->assertEquals($ent['opis'], 'yy');
     $I->assertEquals($ent['arhIdent'], 'zz');
     $I->assertEquals($ent['arhOpomba'], 'zz');
     $I->assertEquals($ent['datumZakljucka'], '2019-02-01T00:00:00+0100');
     $I->assertEquals($ent['sloAvtor'], FALSE);
     $I->assertEquals($ent['jeKoprodukcija'], FALSE);
     $I->assertEquals($ent['kratkiNaslov'], 'zz');
     $I->assertEquals($ent['besedilo']['id'], $this->lookBesedilo['id'], "Besedilo");
     $I->assertEquals($ent['zvrstUprizoritve'], null);
     $I->assertEquals($ent['zvrstSurs'], $this->lookZvrstSurs['id']);
     $I->assertEquals($ent['internacionalniNaslov'], 'zz');
     //        $I->assertEquals($ent['steviloVaj'], 4,"Število vaj");
     $I->assertEquals($ent['planiranoSteviloVaj'], 5);
     $I->assertEquals($ent['krstna'], true, "krstna");
     $I->assertEquals($ent['prvaSlovenska'], true);
     $I->assertEquals($ent['naslovIzvirnika'], 'zz');
     $I->assertEquals($ent['podnaslovIzvirnika'], 'zz');
     $I->assertFalse(isset($ent['producent']), "producent");
     $I->assertTrue(isset($ent['funkcije']));
     $I->assertTrue(isset($ent['arhivi']));
     $I->assertTrue(isset($ent['rekviziterstva']));
     $I->assertTrue(isset($ent['vaje']));
     $I->assertTrue(isset($ent['predstave']));
     //        $I->assertTrue(isset($ent['gostujoce']));
     $I->assertEquals(0, count($ent['funkcije']));
     $I->assertEquals(0, count($ent['arhivi']));
     $I->assertEquals(0, count($ent['rekviziterstva']));
     $I->assertEquals(0, count($ent['vaje']));
     $I->assertEquals(0, count($ent['predstave']));
     //        $I->assertEquals(0, count($ent['gostujoce']));
 }
开发者ID:ifigenija,项目名称:server,代码行数:53,代码来源:UprizoritevCest.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->assertNotEmpty($ent['id']);
     $I->assertEquals($ent['vrFestivali'], 1.22);
     $I->assertEquals($ent['vrGostovanjaInt'], 2.33);
     $I->assertEquals($ent['vrOstalo'], 3.44);
     $I->assertEquals($ent['programDela'], $this->objProgramDela1['id']);
 }
开发者ID:ifigenija,项目名称:server,代码行数:15,代码来源:PostavkaCDveCest.php

示例14: preberiPostniNaslov

 /**
  * preberem poštni naslov  
  * @depends dodajVecPostnihNaslovov
  * 
  * @param ApiTester $I
  */
 public function preberiPostniNaslov(\ApiTester $I)
 {
     $postni = $I->successfullyGet($this->naslUrl, $this->objpostni['id']);
     $I->assertNotEmpty($postni);
     $I->assertTrue(isset($postni['pokrajina']));
     $I->assertEquals("Štajerska", $postni['pokrajina']);
 }
开发者ID:ifigenija,项目名称:server,代码行数:13,代码来源:OsebaCest.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->obj['id']);
     $I->assertNotEmpty($ent['id']);
     $I->assertEquals($ent['namenUporabe'], true);
     $I->assertEquals($ent['opisPostavitve'], 'yy');
     $I->assertEquals($ent['rekvizit'], $this->objRekvizit['id']);
     $I->assertEquals($ent['uprizoritev'], $this->lookUprizoritev['id']);
 }
开发者ID:ifigenija,项目名称:server,代码行数:15,代码来源:RekviziterstvoCest.php


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