You are here

function NodeConvertTestCase::testInvalidNidConvert in Node Convert 7

Same name and namespace in other branches
  1. 6 node_convert.test \NodeConvertTestCase::testInvalidNidConvert()

Tests converting an invalid nid.

File

./node_convert.test, line 66
Node convert Simpletest Unit

Class

NodeConvertTestCase
Class NodeConvertTestCase

Code

function testInvalidNidConvert() {
  $result = node_convert_node_convert(-1, $this
    ->randomName(4), array(), array(), TRUE);
  $this
    ->assertFalse($result, t("Node conversion didn't pass due to illegal nid."));
}