mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Improve checks & add tests
This commit is contained in:
parent
a2e60dd393
commit
8d082488e9
2 changed files with 10 additions and 3 deletions
|
@ -226,6 +226,13 @@ class PocketImportTest extends TestCase
|
|||
->method('getRepository')
|
||||
->willReturn($entryRepo);
|
||||
|
||||
$this->em
|
||||
->expects($this->any())
|
||||
->method('persist')
|
||||
->with($this->callback(function ($persistedEntry) {
|
||||
return $persistedEntry->isArchived() && $persistedEntry->isStarred();
|
||||
}));
|
||||
|
||||
$entry = new Entry($this->user);
|
||||
|
||||
$this->contentProxy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue