File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -417,4 +417,15 @@ public function testEscapeData()
417417 $ c = Customer::findOne (['email ' => "the People's Republic of China " ]);
418418 $ this ->assertSame ("the People's Republic of China " , $ c ->email );
419419 }
420+
421+ public function testFindEmptyWith ()
422+ {
423+ Order::getDb ()->flushdb ();
424+ $ orders = Order::find ()
425+ ->where (['total ' => 100000 ])
426+ ->orWhere (['total ' => 1 ])
427+ ->with ('customer ' )
428+ ->all ();
429+ $ this ->assertEquals ([], $ orders );
430+ }
420431}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class RedisCacheTest extends CacheTestCase
2020 */
2121 protected function getCacheInstance ()
2222 {
23- $ databases = self ::getParam ('databases ' );
23+ $ databases = TestCase ::getParam ('databases ' );
2424 $ params = isset ($ databases ['redis ' ]) ? $ databases ['redis ' ] : null ;
2525 if ($ params === null ) {
2626 $ this ->markTestSkipped ('No redis server connection configured. ' );
You can’t perform that action at this time.
0 commit comments