[COMPONENT][Feed] Correct queries and introduce new feeds

Refactor feeds and search to use a common query builder
This commit is contained in:
2021-12-23 13:27:31 +00:00
parent 1865d2b41e
commit 7d8cce3b27
27 changed files with 337 additions and 217 deletions

View File

@@ -50,7 +50,7 @@ class SecurityTest extends GNUsocialTestCase
[, $crawler] = self::testLogin($nickname = 'taken_user', 'foobar');
$this->assertResponseIsSuccessful();
$this->assertSelectorNotExists('.alert');
$this->assertRouteSame('main_all');
$this->assertRouteSame('root');
$this->assertSelectorTextContains('.profile-info .profile-info-nickname', $nickname);
}
@@ -59,7 +59,7 @@ class SecurityTest extends GNUsocialTestCase
[$client] = self::testLogin('taken_user', 'foobar'); // Normal login
$crawler = $client->request('GET', '/main/login'); // attempt to login again
$client->followRedirect();
$this->assertRouteSame('main_all');
$this->assertRouteSame('root');
}
public function testLoginFailure()
@@ -75,7 +75,7 @@ class SecurityTest extends GNUsocialTestCase
self::testLogin('email@provider', 'foobar');
$this->assertResponseIsSuccessful();
$this->assertSelectorNotExists('.alert');
$this->assertRouteSame('main_all');
$this->assertRouteSame('root');
$this->assertSelectorTextContains('.profile-info .profile-info-nickname', 'taken_user');
}
@@ -102,7 +102,7 @@ class SecurityTest extends GNUsocialTestCase
$client->followRedirect();
$this->assertResponseIsSuccessful();
$this->assertSelectorNotExists('.alert');
$this->assertRouteSame('main_all');
$this->assertRouteSame('root');
$this->assertSelectorTextContains('.profile-info .profile-info-nickname', 'new_nickname');
}