Commit graph

692 commits

Author SHA1 Message Date
brantje
ef6eb74415
Fix count 2016-10-15 22:37:23 +02:00
brantje
3524cded0d
Limit it to 20 credential for preformance reasons 2016-10-15 22:35:29 +02:00
brantje
11f427904c
Fix getRandomCredentialByVaultId for sqllite 2016-10-15 22:34:45 +02:00
brantje
ce49cae86e
Update @covers 2016-10-15 22:19:04 +02:00
brantje
306c267b1b
Fix test and typo 2016-10-15 22:18:44 +02:00
Marcos Zuriaga
8a30328a73
Added partial test
Fixed bug with null data in the mock datasets
Edited mock data so there it's some expired credentials
Added some phpdocs
2016-10-15 21:03:50 +02:00
Marcos Zuriaga
41b0005e7c
Added credential revision mapper unit test 2016-10-15 19:27:43 +02:00
Marcos Zuriaga
a327103bc0
Removed some pgsql useless check 2016-10-15 17:55:07 +02:00
Marcos Zuriaga
2713741eac
Merge branch 'phpunit' of github.com:nextcloud/passman into phpunit 2016-10-15 17:54:35 +02:00
Marcos Zuriaga
95509e3558
Added file mapper test
Updated database test mock data and added missing tables
Changed some wrong phpdoc
Added some phpdoc
2016-10-15 17:53:22 +02:00
brantje
aad51c8064
Remove pgsql tests 2016-10-15 15:22:52 +02:00
Marcos Zuriaga
114df3e948
Attempt to fix pgsql fails 2016-10-15 01:48:33 +02:00
Marcos Zuriaga
4086f22212
Refactored helper to use nextcloud query builder
hoping this fixes the test problems with pgsql
2016-10-15 01:42:14 +02:00
Marcos Zuriaga
0779d79cca
Fix sqlite bug, hope the mysql problem is not happening on other systems and the sql statement works on all the other systems 2016-10-14 23:37:16 +02:00
Marcos Zuriaga
c91c9cb6d8
Add more vervosity to the travis phpunit run
Skip test that fails by unknown php witchery and mark as incomplete
Changed some incomplete annotation
2016-10-14 23:30:54 +02:00
Marcos Zuriaga
52c072631d
Added unit tests agains sharerequest mapper
Added some helper functions on the database helper test
Renamed method so it's less confusing
2016-10-14 22:39:06 +02:00
Marcos Zuriaga
286476a546
Fixed some types on sharerequest entity
Added partial unit test for sharerequest mapper
Changed some assertEquals to assertSame so we don't do loosy type checks
2016-10-14 15:39:33 +02:00
Marcos Zuriaga
61dbcedfa4
Removed unused var from mapper constructor 2016-10-12 19:23:12 +02:00
Marcos Zuriaga
5186648889
Added unit test for SharingACLMapper
Renamed some vars
Added launch_phpunit.sh to gitignore
2016-10-12 19:08:59 +02:00
Marcos Zuriaga
9c53219346
Removed unused method and variable 2016-10-11 23:15:45 +02:00
Marcos Zuriaga
3f2bb33ce3
Changed unit test env var names 2016-10-11 22:33:48 +02:00
Marcos Zuriaga
efd27ee1ae
Fix truncate table 2016-10-11 02:06:04 +02:00
Marcos Zuriaga
1f30ccc963
Added Database testing base class
Added VaultMapper unit tests
Edited some VaultMapper docs and changed a function to use the Utils implementation
Added coverage phpunit annotations
2016-10-11 01:41:32 +02:00
Marcos Zuriaga
d909d780b3
Removed TODO 2016-10-10 02:16:10 +02:00
Marcos Zuriaga
652be86567
Refactored to use assertEquals where applicable,
so in case of errors the messages are more meaningful
2016-10-10 02:15:00 +02:00
brantje
0b716a4d5f
Remove double matrix 2016-10-09 20:28:56 +02:00
brantje
02d783f39b
Fix MC 2016-10-09 20:25:01 +02:00
brantje
9fbcf6aefc
update travis 2016-10-09 19:57:42 +02:00
brantje
2ec6d1ea91
Add owncloud to tests 2016-10-09 19:26:15 +02:00
brantje
65c2111cb5
Merge branch 'changeCIConfig' 2016-10-09 18:44:55 +02:00
brantje
d48b218f65
Update readme 2016-10-09 18:35:34 +02:00
brantje
a18aa0a0d1
Change travis config, add scrutinizer config 2016-10-09 18:29:31 +02:00
brantje
2c48aab40d
Merge branch 'fixLoadingVaultKeySettings' 2016-10-09 18:26:27 +02:00
Marcos Zuriaga
d6e4f32ec8
Added EntityJSONSerializer trait unit tests 2016-10-09 18:24:14 +02:00
brantje
c488b3b50c
Small cleanup
Small fix for loading vaultkey
2016-10-09 18:09:52 +02:00
Marcos Zuriaga
64930bb106
Create unit tests for Vault database model
Fix some typos in phpdoc of vault db model
2016-10-09 17:53:20 +02:00
brantje
5907f1bca2
Merge branch 'removeConsoleLog' 2016-10-09 16:41:34 +02:00
brantje
d4ffb6d7ab
Remove console.logs
Better to log a warning, remove unused parameters

Add missing semicolon
2016-10-09 16:35:05 +02:00
Marcos Zuriaga
0b6a2baa41
Added SharingACL database model test case 2016-10-09 16:12:40 +02:00
Sander
ad7bcf04e3 Update .travis.yml 2016-10-09 15:48:42 +02:00
Marcos Zuriaga
c0e0e61e7b
Added scrutinizer token 2016-10-09 15:42:27 +02:00
Marcos Zuriaga
160d253826
Revert "Code coverage scrutinizer test"
This reverts commit 71fb3679c1.
2016-10-09 15:36:10 +02:00
Marcos Zuriaga
71fb3679c1
Code coverage scrutinizer test 2016-10-09 15:14:29 +02:00
Marcos Zuriaga
a45dd19792
Merge branch 'codeCoverage' into phpunit 2016-10-09 15:02:34 +02:00
Marcos Zuriaga
bc0f47a8e5
Unit tests for ShareRequest model
Fixes bug with asACLJson result data in sharerequest
2016-10-09 14:52:23 +02:00
brantje
a9eda2f0dc
Add code coverag 2016-10-09 13:29:05 +02:00
Marcos Zuriaga
ba259c350c
Added some dirs to coverage tests
Added File db model to tests
2016-10-09 02:31:46 +02:00
Marcos Zuriaga
0fc7b26f38
Added CredentialRevision unit test 2016-10-09 01:46:53 +02:00
Marcos Zuriaga
e4d55f3e29
Added credential test case 2016-10-09 00:39:59 +02:00
brantje
e2f1676320
Add oc_passman_credentials xml 2016-10-08 23:43:34 +02:00