mirror of
https://github.com/wallabag/wallabag.git
synced 2025-08-01 17:38:38 +00:00
Added name on client
- Fix typos in field name - Added migration for name field in API client table Manually cherry-picked from PR https://github.com/wallabag/wallabag/pull/2171
This commit is contained in:
parent
db4d63fc1a
commit
9c545fe028
13 changed files with 110 additions and 24 deletions
|
@ -18,12 +18,19 @@ class DeveloperControllerTest extends WallabagCoreTestCase
|
|||
|
||||
$form = $crawler->filter('button[type=submit]')->form();
|
||||
|
||||
$client->submit($form);
|
||||
$data = [
|
||||
'client[name]' => 'My app',
|
||||
];
|
||||
|
||||
$crawler = $client->submit($form, $data);
|
||||
|
||||
$this->assertEquals(200, $client->getResponse()->getStatusCode());
|
||||
|
||||
$newNbClients = $em->getRepository('WallabagApiBundle:Client')->findAll();
|
||||
$this->assertGreaterThan(count($nbClients), count($newNbClients));
|
||||
|
||||
$this->assertGreaterThan(1, $alert = $crawler->filter('.settings ul li strong')->extract(['_text']));
|
||||
$this->assertContains('My app', $alert[0]);
|
||||
}
|
||||
|
||||
public function testListingClient()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue