mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-26 11:01:04 +00:00
Fixed tests
This commit is contained in:
parent
91f5992423
commit
5614df19cf
3 changed files with 6 additions and 6 deletions
|
@ -17,7 +17,7 @@ class DeveloperControllerTest extends WallabagCoreTestCase
|
||||||
$crawler = $client->request('GET', '/developer/client/create');
|
$crawler = $client->request('GET', '/developer/client/create');
|
||||||
$this->assertSame(200, $client->getResponse()->getStatusCode());
|
$this->assertSame(200, $client->getResponse()->getStatusCode());
|
||||||
|
|
||||||
$form = $crawler->filter('button[type=submit]')->form();
|
$form = $crawler->filter('button[id=client_save]')->form();
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'client[name]' => 'My app',
|
'client[name]' => 'My app',
|
||||||
|
|
|
@ -476,7 +476,7 @@ class EntryControllerTest extends WallabagCoreTestCase
|
||||||
|
|
||||||
$this->assertSame(200, $client->getResponse()->getStatusCode());
|
$this->assertSame(200, $client->getResponse()->getStatusCode());
|
||||||
|
|
||||||
$form = $crawler->filter('button[type=submit]')->form();
|
$form = $crawler->filter('button[id=entry_save]')->form();
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'entry[title]' => 'My updated title hehe :)',
|
'entry[title]' => 'My updated title hehe :)',
|
||||||
|
@ -509,7 +509,7 @@ class EntryControllerTest extends WallabagCoreTestCase
|
||||||
|
|
||||||
$this->assertSame(200, $client->getResponse()->getStatusCode());
|
$this->assertSame(200, $client->getResponse()->getStatusCode());
|
||||||
|
|
||||||
$form = $crawler->filter('button[type=submit]')->form();
|
$form = $crawler->filter('button[id=entry_save]')->form();
|
||||||
|
|
||||||
$data = [
|
$data = [
|
||||||
'entry[title]' => 'My updated title hehe :)',
|
'entry[title]' => 'My updated title hehe :)',
|
||||||
|
|
|
@ -14,7 +14,7 @@ class PocketControllerTest extends WallabagCoreTestCase
|
||||||
$crawler = $client->request('GET', '/import/pocket');
|
$crawler = $client->request('GET', '/import/pocket');
|
||||||
|
|
||||||
$this->assertSame(200, $client->getResponse()->getStatusCode());
|
$this->assertSame(200, $client->getResponse()->getStatusCode());
|
||||||
$this->assertSame(1, $crawler->filter('button[type=submit]')->count());
|
$this->assertSame(1, $crawler->filter('button[name=action]')->count());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testImportPocketWithRabbitEnabled()
|
public function testImportPocketWithRabbitEnabled()
|
||||||
|
@ -27,7 +27,7 @@ class PocketControllerTest extends WallabagCoreTestCase
|
||||||
$crawler = $client->request('GET', '/import/pocket');
|
$crawler = $client->request('GET', '/import/pocket');
|
||||||
|
|
||||||
$this->assertSame(200, $client->getResponse()->getStatusCode());
|
$this->assertSame(200, $client->getResponse()->getStatusCode());
|
||||||
$this->assertSame(1, $crawler->filter('button[type=submit]')->count());
|
$this->assertSame(1, $crawler->filter('button[name=action]')->count());
|
||||||
|
|
||||||
$client->getContainer()->get('craue_config')->set('import_with_rabbitmq', 0);
|
$client->getContainer()->get('craue_config')->set('import_with_rabbitmq', 0);
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@ class PocketControllerTest extends WallabagCoreTestCase
|
||||||
$crawler = $client->request('GET', '/import/pocket');
|
$crawler = $client->request('GET', '/import/pocket');
|
||||||
|
|
||||||
$this->assertSame(200, $client->getResponse()->getStatusCode());
|
$this->assertSame(200, $client->getResponse()->getStatusCode());
|
||||||
$this->assertSame(1, $crawler->filter('button[type=submit]')->count());
|
$this->assertSame(1, $crawler->filter('button[name=action]')->count());
|
||||||
|
|
||||||
$client->getContainer()->get('craue_config')->set('import_with_redis', 0);
|
$client->getContainer()->get('craue_config')->set('import_with_redis', 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue