diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-05-24 17:39:35 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-05-24 17:39:35 +0000 |
commit | a24a6c2bba2d15ab835e0b0fce9354bb6fb16c5b (patch) | |
tree | 9194465a044c0fdad447eba2906f0472a4dff515 /modules/taxonomy/taxonomy.test | |
parent | a5f42fd007bf3646261b431c52cde53657e21564 (diff) | |
download | brdo-a24a6c2bba2d15ab835e0b0fce9354bb6fb16c5b.tar.gz brdo-a24a6c2bba2d15ab835e0b0fce9354bb6fb16c5b.tar.bz2 |
- Patch #471070 by stella: millions of code style fixes.
Diffstat (limited to 'modules/taxonomy/taxonomy.test')
-rw-r--r-- | modules/taxonomy/taxonomy.test | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/taxonomy/taxonomy.test b/modules/taxonomy/taxonomy.test index 636c7a030..a1ce27127 100644 --- a/modules/taxonomy/taxonomy.test +++ b/modules/taxonomy/taxonomy.test @@ -104,7 +104,7 @@ class TaxonomyVocabularyFunctionalTest extends TaxonomyWebTestCase { foreach ($vocabularies as $key => $vocabulary) { $vocabulary->weight = -$vocabulary->weight; $vocabularies[$key]->weight = $vocabulary->weight; - $edit[$key .'[weight]'] = $vocabulary->weight; + $edit[$key . '[weight]'] = $vocabulary->weight; } // Saving the new weights via the interface. $this->drupalPost('admin/content/taxonomy/', $edit, t('Save')); @@ -157,7 +157,7 @@ class TaxonomyVocabularyFunctionalTest extends TaxonomyWebTestCase { // Delete the vocabulary. $edit = array(); - $this->drupalPost('admin/content/taxonomy/' .$vid, $edit, t('Delete')); + $this->drupalPost('admin/content/taxonomy/' . $vid, $edit, t('Delete')); $this->assertRaw(t('Are you sure you want to delete the vocabulary %name?', array('%name' => $vocabulary->name)), t('[confirm deletion] Asks for confirmation.')); $this->assertText(t('Deleting a vocabulary will delete all the terms in it. This action cannot be undone.'), t('[confirm deletion] Inform that all terms will be deleted.')); @@ -175,13 +175,13 @@ class TaxonomyVocabularyFunctionalTest extends TaxonomyWebTestCase { */ class TaxonomyVocabularyUnitTest extends TaxonomyWebTestCase { -public static function getInfo() { - return array( - 'name' => t('Taxonomy vocabularies'), - 'description' => t('Test loading, saving and deleting vocabularies.'), - 'group' => t('Taxonomy'), - ); - } + public static function getInfo() { + return array( + 'name' => t('Taxonomy vocabularies'), + 'description' => t('Test loading, saving and deleting vocabularies.'), + 'group' => t('Taxonomy'), + ); + } function setUp() { parent::setUp('taxonomy'); @@ -501,7 +501,7 @@ class TaxonomyTermTestCase extends TaxonomyWebTestCase { $edit['title'] = $this->randomName(); // Insert the terms in a comma separated list. Vocabulary 1 is a // free-tagging field created by the default profile. - $edit['taxonomy[tags][' . $this->vocabulary->vid .']'] = implode(', ', $terms); + $edit['taxonomy[tags][' . $this->vocabulary->vid . ']'] = implode(', ', $terms); $edit['body'] = $this->randomName(); $this->drupalPost('node/add/article', $edit, t('Save')); $this->assertRaw(t('@type %title has been created.', array('@type' => t('Article'), '%title' => $edit['title'])), t('The node was created successfully')); |