You are here

public function BiblioKeywordWebTestCase::createKeyword in Bibliography Module 7

Same name and namespace in other branches
  1. 6.2 tests/keyword.test \BiblioKeywordWebTestCase::createKeyword()
  2. 7.2 tests/keyword.test \BiblioKeywordWebTestCase::createKeyword()

Returns a new keyword with random properties.

6 calls to BiblioKeywordWebTestCase::createKeyword()
BiblioKeywordWebTestCase::testBiblioDeleteKeyword in tests/BiblioKeywordWebTestCase.test
BiblioKeywordWebTestCase::testBiblioDeleteOrphanKeywords in tests/BiblioKeywordWebTestCase.test
BiblioKeywordWebTestCase::testBiblioGetKeywordById in tests/BiblioKeywordWebTestCase.test
BiblioKeywordWebTestCase::testBiblioGetKeywordByName in tests/BiblioKeywordWebTestCase.test
BiblioKeywordWebTestCase::testBiblioSaveKeyword in tests/BiblioKeywordWebTestCase.test

... See full list

File

tests/BiblioKeywordWebTestCase.test, line 30

Class

BiblioKeywordWebTestCase
Biblio keyword web tests.

Code

public function createKeyword() {
  $keyword = array();
  $keyword['word'] = $this
    ->randomName();
  biblio_save_keyword($keyword);
  $this->kids[] = $keyword['kid'];
  return $keyword;
}