Fixing MainControllerTest::testAjaxUserAutoCompleteHasValidUserObjectsForUnnamedUser() in case of user's name in null instead of empty string.

This commit is contained in:
Alexey Skobkin 2019-04-03 19:43:32 +03:00
parent 9e5f59a2b2
commit aa751bbbc1

View file

@ -144,8 +144,7 @@ class MainControllerTest extends WebTestCase
{
$this->assertTrue(array_key_exists('login', $user), 'Result has \'login\' field');
$this->assertTrue(array_key_exists('name', $user), 'Result has \'name\' field');
$this->assertInternalType('string', $user['name'], 'User name is string');
$this->assertEquals('', $user['name'], 'User name is empty string');
$this->assertEquals(true, ('' === $user['name'] || null === $user['name']), 'User name is empty string or null');
}
public function testAjaxUserAutoCompleteIsEmptyForNonExistingUser(): void