Переглянути джерело

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

Arthur Portugal 15 роки тому
батько
коміт
28e5a284ed

+ 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');			
+	}
+	
+}
+?>