function ServicesResourceTaxonomyTests::testVocabularyDelete in Services 6.3
Same name and namespace in other branches
- 7.3 tests/functional/ServicesResourceTaxonomyTests.test \ServicesResourceTaxonomyTests::testVocabularyDelete()
Test taxonomy vocabulary delete method.
File
- tests/
functional/ ServicesResourceTaxonomyTests.test, line 172
Class
- ServicesResourceTaxonomyTests
- Run test cases for the endpoint with no authentication turned on.
Code
function testVocabularyDelete() {
$path = $this->endpoint->path;
$vocabulary = $this
->createVocabulary();
$vid = $vocabulary['vid'];
$this
->servicesDelete($path . '/taxonomy_vocabulary/' . $vid);
$vocabulary_load = taxonomy_vocabulary_load($vid, TRUE);
$this
->assertTrue(empty($vocabulary_load), t('Taxonomy vocabulary deleted properly.'), 'TaxonomyVocabularyResource: Delete');
}