You are here

function CourseObjectTest::xtestCourseObjectConstruction in Course 3.x

Test the construction of CourseObjects.

@todo is this necessary any more? Disabling test.

File

tests/src/Functional/CourseObjectTest.php, line 56

Class

CourseObjectTest
Tests Course objects

Namespace

Drupal\Tests\course\Functional

Code

function xtestCourseObjectConstruction() {
  $course = $this
    ->createCourse();
  $this
    ->createCourseObject($course);
  $courseObjects = array_values($course
    ->getObjects());
  $courseObject = reset($courseObjects);
  $getCourse = $courseObject
    ->getCourse();
  $this
    ->assertEqual(spl_object_hash($course), spl_object_hash($getCourse), 'Check that Courses inside of CourseObjects inside of Course are the same.');
}