Skip to content
This repository
Browse code

MINOR Fixed tests

  • Loading branch information...
commit 4a3070757b2abf40deaa6db0df627ac8b5ba46da 1 parent 3ff6002
Sean Harvey authored

Showing 1 changed file with 9 additions and 9 deletions. Show diff stats Hide diff stats

  1. 18  tests/core/CoreTest.php
18  tests/core/CoreTest.php
@@ -20,26 +20,26 @@ public function testGetTempPathInProject() {
20 20
 			$this->assertEquals(getTempFolder(), $this->tempPath);
21 21
 		} else {
22 22
 			// A typical Windows location for where sites are stored on IIS
23  
-			$this->assertEquals(getTempFolder('C:\\inetpub\\wwwroot\\silverstripe-test-project'), getSysTempDir() . '/silverstripe-cacheC--inetpub-wwwroot-silverstripe-test-project');
  23
+			$this->assertEquals(getTempFolder('C:\\inetpub\\wwwroot\\silverstripe-test-project'), sys_get_temp_dir() . '/silverstripe-cacheC--inetpub-wwwroot-silverstripe-test-project');
24 24
 
25 25
 			// A typical Mac OS X location for where sites are stored
26  
-			$this->assertEquals(getTempFolder('/Users/joebloggs/Sites/silverstripe-test-project'), getSysTempDir() . '/silverstripe-cache-Users-joebloggs-Sites-silverstripe-test-project');
  26
+			$this->assertEquals(getTempFolder('/Users/joebloggs/Sites/silverstripe-test-project'), sys_get_temp_dir() . '/silverstripe-cache-Users-joebloggs-Sites-silverstripe-test-project');
27 27
 
28 28
 			// A typical Linux location for where sites are stored
29  
-			$this->assertEquals(getTempFolder('/var/www/silverstripe-test-project'), getSysTempDir() . '/silverstripe-cache-var-www-silverstripe-test-project');
  29
+			$this->assertEquals(getTempFolder('/var/www/silverstripe-test-project'), sys_get_temp_dir() . '/silverstripe-cache-var-www-silverstripe-test-project');
30 30
 		}
31 31
 	}
32 32
 
33 33
 	public function tearDown() {
34 34
 		parent::tearDown();
35  
-		if(file_exists(getSysTempDir() . '/silverstripe-cacheC--inetpub-wwwroot-silverstripe-test-project')) {
36  
-			rmdir(getSysTempDir() . '/silverstripe-cacheC--inetpub-wwwroot-silverstripe-test-project');
  35
+		if(file_exists(sys_get_temp_dir() . '/silverstripe-cacheC--inetpub-wwwroot-silverstripe-test-project')) {
  36
+			rmdir(sys_get_temp_dir() . '/silverstripe-cacheC--inetpub-wwwroot-silverstripe-test-project');
37 37
 		}
38  
-		if(file_exists(getSysTempDir() . '/silverstripe-cache-Users-joebloggs-Sites-silverstripe-test-project')) {
39  
-			rmdir(getSysTempDir() . '/silverstripe-cache-Users-joebloggs-Sites-silverstripe-test-project');
  38
+		if(file_exists(sys_get_temp_dir() . '/silverstripe-cache-Users-joebloggs-Sites-silverstripe-test-project')) {
  39
+			rmdir(sys_get_temp_dir() . '/silverstripe-cache-Users-joebloggs-Sites-silverstripe-test-project');
40 40
 		}
41  
-		if(file_exists(getSysTempDir() . '/silverstripe-cache-var-www-silverstripe-test-project')) {
42  
-			rmdir(getSysTempDir() . '/silverstripe-cache-var-www-silverstripe-test-project');
  41
+		if(file_exists(sys_get_temp_dir() . '/silverstripe-cache-var-www-silverstripe-test-project')) {
  42
+			rmdir(sys_get_temp_dir() . '/silverstripe-cache-var-www-silverstripe-test-project');
43 43
 		}
44 44
 	}
45 45
 

0 notes on commit 4a30707

Please sign in to comment.
Something went wrong with that request. Please try again.