Browse Source

Added a new file for the test_suite.php with the construct and destructor0 CT#191

Arthur Portugal 15 years ago
parent
commit
28e5a284ed
1 changed files with 22 additions and 0 deletions
  1. 22 0
      tests/main/gradebook/lib/be/forumthreadlink.class.test.php

+ 22 - 0
tests/main/gradebook/lib/be/forumthreadlink.class.test.php

@@ -0,0 +1,22 @@
+<?php
+class TestForumThreadLink extends UnitTestCase {
+	
+	public function TestForumThreadLink() {
+		$this->UnitTestCase('Test Forum Thread Link');
+	}
+
+	public function __construct() {
+		// The constructor acts like a global setUp for the class
+		TestManager::create_test_course('COURSEFORUMTHREAD');			
+	}
+	
+	
+	
+	
+	public function __destruct() {
+		// The destructor acts like a global tearDown for the class			
+		TestManager::delete_test_course('COURSEFORUMTHREAD');			
+	}
+	
+}
+?>