소스 검색

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…
취소
저장