public function NodeImportTestCase::assertRowStatus in Node import 6
Check to see if the row status is as specified.
Parameters
$result: Record from {node_import_status}.
$status: What the status should be.
$message: Message to display along with the assertion.
$group: The type of assertion - examples are "Browser", "PHP".
Return value
TRUE if the assertion succeeded, FALSE otherwise.
3 calls to NodeImportTestCase::assertRowStatus()
- NodeImportTestCase::assertRowStatusDONE in tests/
NodeImportTestCase.php - Check to see if the row status is NODE_IMPORT_STATUS_DONE.
- NodeImportTestCase::assertRowStatusERROR in tests/
NodeImportTestCase.php - Check to see if the row status is NODE_IMPORT_STATUS_ERROR.
- NodeImportTestCase::assertRowStatusPENDING in tests/
NodeImportTestCase.php - Check to see if the row status is NODE_IMPORT_STATUS_PENDING.
File
- tests/
NodeImportTestCase.php, line 218 - DrupalWebTestCase wrapper with some extra functions to ease the development of node_import tests.
Class
- NodeImportTestCase
- @file DrupalWebTestCase wrapper with some extra functions to ease the development of node_import tests.
Code
public function assertRowStatus($result, $status, $message = '', $group = 'Node import') {
return $this
->assert(is_array($result) && isset($result['status']) && $result['status'] == $status, $message ? $message : t('Row status set to %d', array(
'%d' => $status,
)), $group);
}