Browse Source

make sure CI member exists

Timothy J. Warren 3 years ago
parent
commit
591173f163
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      application/third_party/CIUnit/libraries/Fixture.php

+ 1
- 0
application/third_party/CIUnit/libraries/Fixture.php View File

@@ -24,6 +24,7 @@ class Fixture {
24 24
 		// Turn off foreign key checks for mysql so test tables can be easily truncated
25 25
 		if (getenv('DB') === 'mysql')
26 26
 		{
27
+			$this->_assign_db();
27 28
 			$this->CI->db->simple_query('SET foreign_key_checks = 0;');
28 29
 		}
29 30
 	}