You are here

protected function OpignoQuizImportAppWebTestCase::_checkNodeAuthor in Opigno Quiz Import App 7

Helper function to test the node was assigned to the correct user.

1 call to OpignoQuizImportAppWebTestCase::_checkNodeAuthor()
OpignoQuizImportAppWebTestCase::testGlobalImport in tests/OpignoQuizImportAppWebTestCase.test
Test importing a quiz in global context.

File

tests/OpignoQuizImportAppWebTestCase.test, line 191
Defines the unit tests for the Opigno Quiz Import app.

Class

OpignoQuizImportAppWebTestCase
@file Defines the unit tests for the Opigno Quiz Import app.

Code

protected function _checkNodeAuthor($nid, $uid) {
  $node = node_load($nid);
  $this
    ->assertEqual($node->uid, $uid, "Node was assigned to the correct user.");
}