|
@@ -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];
|