summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Service
AgeCommit message (Collapse)Author
2021-04-08๐ŸŽจ Rename $l to $l10nMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08โœ… Add + update sharer display name testsMarco Nassabain
- added testMapSharedByDisplayNames - updated ItemController tests to expect call to function Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08๐Ÿงน ShareService: rename $url to $urlGeneratorMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08โœ… Update test to include localizationMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08๐ŸŽจ ShareService: update dummy feed URLMarco Nassabain
- add IURLGenerator DI - update url to "http://serverurl/news/sharedwithme" - updated tests: added DI + adapted expected url Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08๐ŸŒ ShareService: Localize dummy feed titleMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08๐Ÿงน Cleanup code, remove spaces, rename variablesMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08โœ… Update ItemServiceTest: remove share testsMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08โœ… WIP add ShareServiceTestMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08๐Ÿš‘ Fix circular inclusion: create ShareServiceMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08โœจ Add FeedService DI into ItemService in testsMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08๐Ÿ”ฅ Remove old share logic from tests & old testsMarco Nassabain
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08โœ๏ธ Fix share test name typoMarco Nassabain
- testFindAllShared => testFindAllSharedWithUser Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08โœ… ItemServiceTest: test share functionsMarco Nassabain
- testFindAllShared - testFindAllNewShared - testSharedCount Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08โœ… ItemServiceTest: test share functionMarco Nassabain
- testShare - testShareDoesNotExist Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08โœ… Add tests: testFindAllShared, testShare + ...Marco Nassabain
+ testShareDoesNotExist Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-04-08โœ… Unary test for itemShare from itemService classWENDLING NICOLAS
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
2021-02-20General: Fix folder querySean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-02-13Remove V1 item APISean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-02-05DB: Remove unused fieldsSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2021-01-12Fix getUnreadOrStarredTypeSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-12-30Remove PHPunit integration testsSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-12-17Fix mapper->find and empty user sessionsSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-12-08Refactor User ID fetching and fix non-specific cleanupSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-12-08Remove usage of old Folder codeSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-11-03Add migration with foreign keysSean Molenaar
Closes #829 Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-10-10Fix usage of at() in unittestsSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-10-05Define microtime as stringSean Molenaar
Closes #835 Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-10-02fix incorrect cron recommendationanoy
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
2020-09-29OPML export command and fixesSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-09-27Create V2 mapper, Service and management commandsSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-09-25Move to nextcloud config and update phpunitSean Molenaar
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
2020-08-29fix import with invalid guid_hashBenjamin Brahmer
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
2020-03-09Add test to ensure that null will emit a exceptionDaniel Kesselberg
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2019-12-24Reimplement full-text scraping (#563)DriverXX
Add readability.php scraper Fixes #482 Signed-off-by: Gioele Falcetti <thegio.f@gmail.com>
2019-03-12Catch FeedIO reader exception.Sean Molenaar
Closes #413 Closes #412
2019-01-30Parser: Switch to feedIO for parsing instead of picoFeedSean Molenaar
2018-12-04use magic class constant instead of classname stringsDaniel Opitz
2018-10-02Merge pull request #283 from danopz/entity-methodsSean Molenaar
Entity setters + getters
2018-10-02Put back old tests for stable nextcloud versionSean Molenaar
2018-09-28fixed feed testsDaniel Opitz
2018-03-27Core: Fix compatibility with nextcloud codestyle (#280)Sean Molenaar
2018-03-18Unit: Fix unittests (#278)Sean Molenaar
* Unit: Fix unittests Issue #171 * Tests: Move test namespace to the expected nextcloud namespace
2017-08-14Split binary to booleans (#203)Daniel Opitz
* replaced old status with 2 flags for unread and starred * add fields to db, replace int(1,0) with booleans in sql queries, removed StatusFlags class + refactor code relying to it * add repair step for migration * again use integer(1,0) instead of bool in sql queries, because of sqlite doesn't support true/false * add/fix unit tests for new boolean status * set unread/starred flags as statements in sql * fixed mysql unknown column items.unread, fixed marking of read items on repair step * remove unnecessary bool casts * add empty checks to Items::is* methods * update migration to use native sql instead of the querybuilder * don't cast the flags manually, let the api do the work
2017-06-06Fix travis build (#178)Daniel Schaal
* Use stable12 branch for travis * Shorten db indices to max 27 characters to satisfy app:check-code * Use precise container, downgrade to psql 9.4 * Create psql role * Fix ContentController test * Fix PageController and StatusService tests * Use OCP\IDBConnection, OCP\IDb was removed * Extend IntegrationTest from \Test\Testcase, use loginAsUser to login * Require phpunit 5, nextcloud tests not compatible with phpunit 6 Change tests to use phpunit from vendor directory
2017-01-04Add updatedDate to item model (#81)Daniel Schaal
* Update picoFeed to v0.1.28 * Add updated_date to database and bump version to 10.1.1 * Add updatedDate to item model * Check for updatedDate when updating a feed * Fix unit test to check for newer updatedDate
2016-11-18Throw ServiceNotFoundException when marking non-existent item as read (#61)Daniel Schaal
* Throw ServiceNotFoundException when marking non-existent item as read Fixes #58 * Add test case for marking non-existent item as read
2016-10-02revertBernhard Posselt
2016-10-01Add updatedDate to item model (#43)Daniel Schaal
* Update picoFeed to 0.1.25 * Add updated_date to database * Add updatedDate to item model * Bump version to 9.0.5 * Check for updatedDate when updating a feed * Fix unit test to check for newer updatedDate
2016-07-23removing owncloud references and updating linksBernhard Posselt