forked from GNUsocial/gnu-social
[TESTS][DB] Update test to reflec fact that GSActor no longer has a normalized_nickname field
This commit is contained in:
parent
6b4b3e90fb
commit
1d40c5cdb3
@ -54,7 +54,7 @@ class DBTest extends GNUsocialTestCase
|
|||||||
static::assertTrue(is_array($actor));
|
static::assertTrue(is_array($actor));
|
||||||
static::assertTrue($actor[0] instanceof GSActor);
|
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(is_array($actor));
|
||||||
static::assertTrue($actor[0] instanceof GSActor);
|
static::assertTrue($actor[0] instanceof GSActor);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user