function MerciTestCase::merciUpdateNode in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.2
Same name and namespace in other branches
- 6.2 tests/merci_testcase.php \MerciTestCase::merciUpdateNode()
6 calls to MerciTestCase::merciUpdateNode()
- MerciIssueTestCase::testIssue1070658 in tests/
merci_issues.test - MerciIssueTestCase::testIssue1103328 in tests/
merci_issues.test - MerciUserTestCase::testMerciBucketAvailability in tests/
merci_user.test - MerciUserTestCase::testMerciCheckedOutCase in tests/
merci_user.test - MerciUserTestCase::testMerciResourceAvailability in tests/
merci_user.test
File
- tests/
merci_testcase.php, line 124 - Simpletest case for node_example module.
Class
- MerciTestCase
- Functionality tests for merci module. General setup and functions all merci tests should inherit.
Code
function merciUpdateNode($nid, $settings, $pass = TRUE) {
$this
->drupalPost("node/{$nid}/edit", $settings, t('Save'));
$node = node_load($nid);
return $node;
}