Browse Source

tests

develop
Robin Thoni 8 years ago
parent
commit
eb34b05a13
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      tests/LuApplicationTest.php

+ 8
- 0
tests/LuApplicationTest.php View File

42
         $this->assertNull(LuticateApplication::getDatabase("anotherdb", $dbs));
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
     public function testResolveDatabases1()
53
     public function testResolveDatabases1()
46
     {
54
     {
47
         $db1 = ["name" => "mydb", "other_info" => 42];
55
         $db1 = ["name" => "mydb", "other_info" => 42];

Loading…
Cancel
Save