Commit cf4fa0d9 authored by Dave Reid's avatar Dave Reid
Browse files

Fixed fatal error with the taxonomy test.

parent 195b6684
......@@ -37,10 +37,7 @@ class XMLSitemapTaxonomyFunctionalTest extends XMLSitemapTestHelper {
$this->drupalPost('admin/structure/taxonomy/add', $edit, 'Save');
$this->assertText("Created new vocabulary {$edit['name']}.");
$vocabularies = taxonomy_vocabulary_get_names();
$vid = $vocabularies[$edit['machine_name']]->vid;
$vocabulary = taxonomy_vocabulary_load($vid);
$vocabulary = taxonomy_vocabulary_machine_name_load($edit['machine_name']);
$edit = array(
'name' => $this->randomName(),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment