Robin Thoni 7 anni fa
parent
commit
eb34b05a13
1 ha cambiato i file con 8 aggiunte e 0 eliminazioni
  1. 8
    0
      tests/LuApplicationTest.php

+ 8
- 0
tests/LuApplicationTest.php Vedi File

@@ -42,6 +42,14 @@ class LuApplicationTest extends \PHPUnit_Framework_TestCase
42 42
         $this->assertNull(LuticateApplication::getDatabase("anotherdb", $dbs));
43 43
     }
44 44
 
45
+    public function testGetDatabases5()
46
+    {
47
+        $db1 = ["name" => "mydb", "other_info" => 42];
48
+        $db2 = ["name" => "myotherdb", "alias" => "mydb"];
49
+        $dbs = [$db1, $db2];
50
+        $this->assertNull(LuticateApplication::getDatabase("myotherdb", $dbs));
51
+    }
52
+
45 53
     public function testResolveDatabases1()
46 54
     {
47 55
         $db1 = ["name" => "mydb", "other_info" => 42];

Loading…
Annulla
Salva