protected function PanelizerTermTest::createTestTerm in Panelizer 7.3
Helper function to create a taxonomy term.
Return value
object A taxonomy term object.
3 calls to PanelizerTermTest::createTestTerm()
- PanelizerTermTest::testTermPanelizeIt in tests/
panelizer.term.test - PanelizerTermTest::testTermPanelsDefault in tests/
panelizer.term.test - PanelizerTermTest::testVocabularyConfiguration in tests/
panelizer.term.test - Test the vocabulary configuration functionality.
File
- tests/
panelizer.term.test, line 61 - Panelizer tests.
Class
- PanelizerTermTest
- Verifies Panelizer configuration options for taxonomy terms.
Code
protected function createTestTerm() {
$edit = array(
'name' => t('Test Panelizer Term'),
'description' => "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book",
'parent' => array(
0,
),
'vid' => $this->vocabulary->vid,
);
$term = (object) $edit;
taxonomy_term_save($term);
return $term;
}