瀏覽代碼

tests

develop
Robin Thoni 8 年之前
父節點
當前提交
eb34b05a13
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. 8
    0
      tests/LuApplicationTest.php

+ 8
- 0
tests/LuApplicationTest.php 查看文件

@@ -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…
取消
儲存