public function BiblioKeywordWebTestCase::createKeyword in Bibliography Module 7
Same name and namespace in other branches
- 6.2 tests/keyword.test \BiblioKeywordWebTestCase::createKeyword()
- 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
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;
}