[TESTS][DB] Update test to reflec fact that GSActor no longer has a normalized_nickname field

This commit is contained in:
Hugo Sales 2021-07-28 21:23:28 +00:00
parent 6b4b3e90fb
commit 1d40c5cdb3
No known key found for this signature in database
GPG Key ID: 7D0C7EAFC9D835A0

View File

@ -54,7 +54,7 @@ class DBTest extends GNUsocialTestCase
static::assertTrue(is_array($actor));
static::assertTrue($actor[0] instanceof GSActor);
$actor = DB::findBy('gsactor', ['and' => ['nickname' => 'taken_user', 'is_null' => 'bio', 'gte' => ['id' => 0], 'or' => ['normalized_nickname' => 'takenuser']]]);
$actor = DB::findBy('gsactor', ['and' => ['is_null' => 'bio', 'or' => ['nickname' => 'user does not exist', 'gte' => ['id' => 0]]]]);
static::assertTrue(is_array($actor));
static::assertTrue($actor[0] instanceof GSActor);
}