function BiblioKeywordUnitTest::testBiblioDeleteKeyword in Bibliography Module 6.2
Same name and namespace in other branches
- 7.2 tests/keyword.test \BiblioKeywordUnitTest::testBiblioDeleteKeyword()
File
- tests/
keyword.test, line 49 - Tests for keyword functions in Drupal biblio module.
Class
- BiblioKeywordUnitTest
- Unit tests for keyword functions.
Code
function testBiblioDeleteKeyword() {
$keyword = $this
->createKeyword();
$num_deleted = biblio_delete_keyword($keyword['kid']);
$this
->assertEqual($num_deleted, 1, t('Deleted a single keyword'));
}