Fixing MainControllerTest::testAjaxUserAutoCompleteHasValidUserObjectsForUnnamedUser() in case of user's name in null instead of empty string.
This commit is contained in:
parent
9e5f59a2b2
commit
aa751bbbc1
|
@ -144,8 +144,7 @@ class MainControllerTest extends WebTestCase
|
||||||
{
|
{
|
||||||
$this->assertTrue(array_key_exists('login', $user), 'Result has \'login\' field');
|
$this->assertTrue(array_key_exists('login', $user), 'Result has \'login\' field');
|
||||||
$this->assertTrue(array_key_exists('name', $user), 'Result has \'name\' field');
|
$this->assertTrue(array_key_exists('name', $user), 'Result has \'name\' field');
|
||||||
$this->assertInternalType('string', $user['name'], 'User name is string');
|
$this->assertEquals(true, ('' === $user['name'] || null === $user['name']), 'User name is empty string or null');
|
||||||
$this->assertEquals('', $user['name'], 'User name is empty string');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testAjaxUserAutoCompleteIsEmptyForNonExistingUser(): void
|
public function testAjaxUserAutoCompleteIsEmptyForNonExistingUser(): void
|
||||||
|
|
Loading…
Reference in a new issue