[DB] Fix uses of DB::sql, to remove the deprecated second entities parameter

This commit is contained in:
2021-11-08 20:21:41 +00:00
parent 767b2035e7
commit f0c532340e
3 changed files with 19 additions and 18 deletions

View File

@@ -44,7 +44,7 @@ class DBTest extends GNUsocialTestCase
public function testSql()
{
static::bootKernel();
$actor = DB::sql('select {select} from actor a where a.nickname = :nickname', ['a' => 'App\Entity\Actor'], ['nickname' => 'taken_user']);
$actor = DB::sql('select {select} from actor a where a.nickname = :nickname', ['nickname' => 'taken_user']);
static::assertIsArray($actor);
static::assertTrue($actor[0] instanceof Actor);
}