function BiblioKeywordWebTestCase::createKeyword in Bibliography Module 6.2
Same name and namespace in other branches
- 7 tests/BiblioKeywordWebTestCase.test \BiblioKeywordWebTestCase::createKeyword()
- 7.2 tests/keyword.test \BiblioKeywordWebTestCase::createKeyword()
Returns a new keyword with random properties.
6 calls to BiblioKeywordWebTestCase::createKeyword()
- BiblioKeywordUnitTest::testBiblioDeleteKeyword in tests/
keyword.test - BiblioKeywordUnitTest::testBiblioDeleteOrphanKeywords in tests/
keyword.test - BiblioKeywordUnitTest::testBiblioGetKeywordById in tests/
keyword.test - BiblioKeywordUnitTest::testBiblioGetKeywordByName in tests/
keyword.test - BiblioKeywordUnitTest::testBiblioSaveKeyword in tests/
keyword.test
File
- tests/
keyword.test, line 22 - Tests for keyword functions in Drupal biblio module.
Class
Code
function createKeyword() {
$keyword = array();
$keyword['word'] = $this
->randomName();
biblio_save_keyword($keyword);
$this->kids[] = $keyword['kid'];
return $keyword;
}