mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 10:22:14 +01:00
25 lines
737 B
PHP
25 lines
737 B
PHP
<?php
|
|
|
|
namespace Wallabag\CoreBundle\Tests\Controller;
|
|
|
|
use Wallabag\CoreBundle\Tests\WallabagCoreTestCase;
|
|
|
|
class DeveloperControllerTest extends WallabagCoreTestCase
|
|
{
|
|
public function testNewClient()
|
|
{
|
|
$this->logInAs('admin');
|
|
$client = $this->getClient();
|
|
|
|
$crawler = $client->request('GET', '/developer/client/create');
|
|
$this->assertEquals(200, $client->getResponse()->getStatusCode());
|
|
|
|
$form = $crawler->filter('button[type=submit]')->form();
|
|
|
|
$crawler = $client->submit($form);
|
|
|
|
$this->assertEquals(200, $client->getResponse()->getStatusCode());
|
|
$this->assertContains('Make sure to copy these parameters now.', $client->getResponse()->getContent());
|
|
}
|
|
}
|