function BiblioKeywordUnitTest::testBiblioGetKeywordById in Bibliography Module 6.2
Same name and namespace in other branches
- 7.2 tests/keyword.test \BiblioKeywordUnitTest::testBiblioGetKeywordById()
File
- tests/
keyword.test, line 55 - Tests for keyword functions in Drupal biblio module.
Class
- BiblioKeywordUnitTest
- Unit tests for keyword functions.
Code
function testBiblioGetKeywordById() {
$keyword = $this
->createKeyword();
$word = (array) biblio_get_keyword_by_id($keyword['kid']);
$this
->assertEqual($keyword, $word, 'Get keyword by ID');
}