function MerciTestCase::merciCreateNode in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6.2
Same name and namespace in other branches
- 7.2 tests/merci_testcase.php \MerciTestCase::merciCreateNode()
15 calls to MerciTestCase::merciCreateNode()
- MerciBucketTestCase::testMerciTooManyBuckets in tests/
merci_bucket.test - MerciBucketTestCase::testMerciTooManyPlusConflictBuckets in tests/
merci_bucket.test - MerciIssueTestCase::testIssue1070658 in tests/
merci_issues.test - MerciIssueTestCase::testIssue1070662 in tests/
merci_issues.test - MerciIssueTestCase::testIssue1103328 in tests/
merci_issues.test
File
- tests/
merci_testcase.php, line 110 - Simpletest case for node_example module.
Class
- MerciTestCase
- Functionality tests for merci module. General setup and functions all merci tests should inherit.
Code
function merciCreateNode($type, $settings, $pass = TRUE) {
$this
->drupalPost('node/add/' . $type, $settings, t('Save'));
$node = node_load(array(
'title' => $settings['title'],
));
//$this->verbose('Node created: ' . var_export($node, TRUE));
return $node;
}