You are here

public function NodeImportTestCase::assertRowErrorContains in Node import 6

1 call to NodeImportTestCase::assertRowErrorContains()
NodeImportNode::testBasicNode in tests/supported/node.test
Test import of basic node.

File

tests/NodeImportTestCase.php, line 279
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 assertRowErrorContains($result, $error, $message = '', $group = 'Node import') {
  $errors = is_array($result['errors']) ? $result['errors'] : unserialize($result['errors']);
  return $this
    ->assert(in_array($error, $errors, TRUE), $message ? $message : t('Row errors contains error message.'), $group);
}