Guest User

Untitled

a guest
May 24th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Index: unit/DbTest.php
  2. ===================================================================
  3. --- unit/DbTest.php (revision 10872)
  4. +++ unit/DbTest.php (working copy)
  5. @@ -23,4 +23,11 @@
  6. $db = api_db::factory('testdb_nodsn');
  7. $this->assertIdentical($db, false);
  8. }
  9. +
  10. + public function testOverwriteInstance() {
  11. + $db = api_db::factory('testdb');
  12. + api_db::setInstance('othertestdb', $db);
  13. + $db2 = api_db::factory('othertestdb');
  14. + $this->assertIdentical($db, $db2);
  15. + }
  16. }
Add Comment
Please, Sign In to add comment