mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-22 17:18:37 +00:00
Fixing tests
This commit is contained in:
parent
0a6f4568b5
commit
70584b42aa
2 changed files with 3 additions and 4 deletions
|
@ -287,7 +287,7 @@ class EntryRestController extends WallabagRestController
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reload an entry.
|
* Reload an entry.
|
||||||
* An empty response with HTTP Status 304 will be send if we weren't able to update the content (because it hasn't changed or we got an error)
|
* An empty response with HTTP Status 304 will be send if we weren't able to update the content (because it hasn't changed or we got an error).
|
||||||
*
|
*
|
||||||
* @ApiDoc(
|
* @ApiDoc(
|
||||||
* requirements={
|
* requirements={
|
||||||
|
|
|
@ -681,10 +681,9 @@ class EntryRestControllerTest extends WallabagApiTestCase
|
||||||
|
|
||||||
public function testReloadEntryErrorWhileFetching()
|
public function testReloadEntryErrorWhileFetching()
|
||||||
{
|
{
|
||||||
$entry = $this->client->getContainer()
|
$entry = $this->client->getContainer()->get('doctrine.orm.entity_manager')
|
||||||
->get('doctrine.orm.entity_manager')
|
|
||||||
->getRepository('WallabagCoreBundle:Entry')
|
->getRepository('WallabagCoreBundle:Entry')
|
||||||
->findOneBy(['user' => 1, 'isArchived' => false]);
|
->findByUrlAndUserId('http://0.0.0.0/entry4', 1);
|
||||||
|
|
||||||
if (!$entry) {
|
if (!$entry) {
|
||||||
$this->markTestSkipped('No content found in db.');
|
$this->markTestSkipped('No content found in db.');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue