Commit Graph

727 Commits

Author SHA1 Message Date
Rodrigo de Oliveira 9b4a45b8af adds more test cases for taxonomy meta html 2021-04-06 09:51:26 -03:00
Rodrigo de Oliveira d7637bde12 finishes first tests for taxonomy meta html 2021-04-06 09:41:32 -03:00
Rodrigo de Oliveira 7e7c36d60b bootstraps for taxonomy html test 2021-04-06 08:40:05 -03:00
Rodrigo de Oliveira d4b67beb30 Covers yet more test cases for relationship metadata 2021-04-06 06:32:15 -03:00
Rodrigo de Oliveira 2132505095 adds html tests to relationship meta 2021-04-06 02:04:43 -03:00
Rodrigo de Oliveira 5e4dd01e08 tiny lints 2021-04-06 01:21:22 -03:00
Rodrigo de Oliveira b9017f85e0 adds tests to html returned selectbox metadata 2021-04-05 15:46:51 -03:00
Rodrigo de Oliveira 6dc8510bb0 Adds tests for user metadata html 2021-04-05 14:38:09 -03:00
Rodrigo de Oliveira 5503abc6b6 Refactors base test setup boilerplate 2021-04-05 14:07:57 -03:00
Rodrigo de Oliveira 62abad4839 adds html tests for date meta 2021-04-05 13:37:15 -03:00
Rodrigo de Oliveira 4ce2c9491b ads html tests for numeric meta type 2021-04-05 11:57:23 -03:00
Rodrigo de Oliveira f1d83ed0a4 Removes old dumps 2021-04-05 01:11:45 -03:00
Rodrigo de Oliveira a50f878725 Adds test for text metadata 2021-03-29 17:09:17 -03:00
Rodrigo de Oliveira 0686795afc adds first render_as_html new passing tests 2021-03-29 03:20:52 -03:00
Rodrigo de Oliveira cf046af8c7 Renames more test functions to a common pattern 2021-03-29 01:45:27 -03:00
Rodrigo de Oliveira 657ddc6f9a renames test functions 2021-03-29 01:44:06 -03:00
vnmedeiros 59c0a9e658 Merge branch 'develop' into 447-prevent-xss 2021-03-23 08:42:02 -03:00
vnmedeiros 7aeeb56805 fix: disable WP_RUN_CORE_TESTS #509 2021-03-17 11:37:26 -03:00
Rodrigo de Oliveira 86ab1f9cb6 Better organizes HTML injections test suit 2021-03-12 04:47:33 -03:00
Rodrigo de Oliveira 1422887696 adds tests for terms 2021-03-12 03:53:13 -03:00
Rodrigo de Oliveira 566292eebd Adds more texts and sanitized fields 2021-03-12 02:58:06 -03:00
Rodrigo de Oliveira 246e5b92d3 Passing test for taxonomies 2021-03-12 01:18:12 -03:00
Rodrigo de Oliveira 461cff8a40 Tiny refactors entity factory 2021-03-11 15:34:10 -03:00
Rodrigo de Oliveira de90e70487 Sanitizes evil scripts for collections, metadatum and items 2021-03-11 04:37:37 -03:00
Rodrigo de Oliveira 9253724ba5 Merge branch 'develop' into 447-prevent-xss 2021-03-06 17:27:47 -03:00
vnmedeiros 79b3a83106 test: add tests to image blurhash #463 2021-02-19 17:33:25 -03:00
vnmedeiros b071dd05e2 fix: indentations 2021-02-18 10:29:57 -03:00
vnmedeiros a018c10640 fix: indentation #383 2021-02-06 09:03:05 -03:00
Rodrigo Guimarães c094e2393a Adds tests for allowed tags 2021-02-05 12:25:52 -03:00
Rodrigo Guimarães 3521b1da07 introduces new test cases 2021-02-05 12:05:16 -03:00
Rodrigo Guimarães 1b73e96594 Better organizes html injection tests class 2021-02-05 11:26:30 -03:00
Rodrigo Guimarães 4c0deb392a Disallows a HTML tag from content 2021-02-05 01:37:26 -03:00
Rodrigo Guimarães a3e844cda6 Adds option to prevent curl download error [ref https://curl.se/docs/manpage.html\#-L] 2021-02-04 16:12:04 -03:00
vnmedeiros 26a9ca1385 feat: add test to injection HTML 2021-02-04 16:07:33 -03:00
vnmedeiros e9a5125b17 test: add test term taxonomy filtered by collections 2020-11-11 17:34:27 -03:00
vnmedeiros e5815651e9 Merge branch 'develop' into feature/114 2020-11-03 14:25:04 -03:00
Vinícius Nunes Medeiros da8df12f77
Merge pull request #441 from tainacan/fix/add_caps_dependencies
Add dependencies caps in roles API
2020-10-30 11:35:34 -03:00
vnmedeiros 7b55a3686d fix: change call action to update/insert control metadatum item #114 2020-10-28 18:02:55 -03:00
leogermani b5428d830d ad dependencies caps in roles API 2020-10-25 14:05:54 -03:00
leogermani a421796513 user can edit collection when having manage_collection cap 2020-10-25 13:23:39 -03:00
vnmedeiros 051d17a8e4 change mapped property bool to string #388 2020-09-25 17:20:09 -03:00
vnmedeiros 5a345e324e fix tests #388 2020-09-25 16:24:39 -03:00
vnmedeiros deaa630d89 add tests for submission metadata types #388 2020-09-22 11:08:17 -03:00
vnmedeiros 48be064716 add test for endpoint submission #388 2020-09-17 10:37:42 -03:00
mateuswetah d9da6bae70 Updates some tests and the fetch_metadata_type function to do not return control metadata 2020-09-16 15:41:35 -03:00
mateuswetah 2253e7dcf0 Fixes some tests due to new metadatum type. 2020-09-09 16:20:54 -03:00
vnmedeiros 765b498e99 fix test replace `'value' => ''` to `'compare' => 'NOT EXISTS'` #381 2020-05-05 20:41:49 -03:00
leogermani c009862185 add read cap by default for new roles #376 2020-04-22 18:14:44 -03:00
vnmedeiros 9d2b653656 remane `metadatum_id` to `metadatum_id_to` and `metadatum_id_copy_from` to `metadatum_id_from` 2020-04-22 17:35:13 -03:00
mateuswetah 54d8d67a28 Copy values routine to Bulk edition modal. 2020-04-21 23:25:07 -03:00
vnmedeiros bad063b551 remove print_r 2020-04-21 11:37:30 -03:00
vnmedeiros 80f429e8b4 add test to methd `copy_value` of bulkedit #354 2020-04-21 11:22:23 -03:00
vnmedeiros b5d486961e changes core author metadata to user metadata #354 2020-04-17 09:29:11 -03:00
mateuswetah c136f375c0 Merges conflicts from develop. 2020-04-10 09:00:15 -03:00
vnmedeiros c015b37ac8 add endpoint methed `DELETE` for remoce a value of metadata compound #17 2020-04-10 00:08:37 -03:00
vnmedeiros 2aa94b5065 add/fix tests for core metadata author #354 2020-04-08 15:35:28 -03:00
vnmedeiros 2bb1e83f84 add test for multiple compound metadatum API #17 2020-03-27 15:32:59 -03:00
vnmedeiros 85b7568d34 add teste `test_create_compound_metadatum_API` #17 2020-03-24 08:46:53 -03:00
vnmedeiros 41dea9f2e6 fix tests compound metadatum order #17 2020-03-14 00:50:35 -03:00
vnmedeiros dbed32b98d fix test instanceof Item_Metadata_Entity #17 2020-03-14 00:24:08 -03:00
vnmedeiros 875b828eea remove `validate_metadata_order` #17 2020-03-13 14:22:00 -03:00
vnmedeiros 966aa2adf1 add validate metadata order #17 2020-03-05 14:02:48 -03:00
vnmedeiros 0d1256c66d add test group compound_metadatum #17 2020-03-05 11:04:44 -03:00
vnmedeiros a3e67b6276 fix count metadata type #17 2020-03-04 10:59:13 -03:00
vnmedeiros 2c2ee72617 fix paramenrs `parent_meta_id` #17 2020-03-02 14:58:42 -03:00
vnmedeiros 85bc6c996e add `parent_meta_id` on endpoint #17 2020-02-29 10:21:36 -03:00
leogermani 29977826d9 disallow new terms on meta when tax changes #366 2020-02-20 14:57:18 -03:00
vnmedeiros 56dc4d5206 fix indentation 2020-02-19 15:46:18 -03:00
vnmedeiros 146e6169d2 add test to change status of taxonomy 2020-02-19 15:39:27 -03:00
Vinícius Nunes 8dc2761c44 Merge branch 'release/0.15' of https://github.com/tainacan/tainacan into release/0.15 2020-02-11 11:27:41 -03:00
leogermani 5724260bbf fix tests for older php versions 2020-02-11 11:00:01 -03:00
leogermani a9e5f8d58a remove private filter and meta from api response
it was showing up in metadata and filters_order
2020-02-11 10:52:26 -03:00
vnmedeiros 5f5a8ae414 add new assert test #344 2020-02-11 10:51:41 -03:00
vnmedeiros 13f48bd63a add text api search #344 2020-02-11 10:51:24 -03:00
leogermani e2e57d05bd more tests for private meta and filters visibility 2020-02-11 10:09:45 -03:00
leogermani 7d42f87982 add test for visibility of private filters 2020-02-11 09:48:22 -03:00
vnmedeiros bf8070abe7 fix the call of function `permission_callback` 2020-02-03 16:53:23 -03:00
vnmedeiros a58104874f change method `set_comments` to `set_comment_status` #171 2019-12-19 12:41:29 -03:00
leogermani e94a08269d fix exclude param in rest api 2019-12-18 17:28:56 -03:00
Vinícius Nunes fb567051e7 add teste to set status of coments items #171 2019-12-18 17:03:22 -03:00
Vinícius Nunes 69b7251dbe add test to action clear metadada #200 2019-12-18 16:27:00 -03:00
Mateus Machado Luna b2f5a68a4c Merge conflicts from develop. 2019-12-17 09:42:04 -03:00
leogermani e17c5241cf Merge branch 'feature/274' into develop 2019-12-16 16:00:53 -03:00
Vinícius Nunes f17a4fb9cb add `collection_id` on bulk-edits tests #200 2019-12-16 13:49:38 -03:00
Vinícius Nunes 39c89d343d fix tests, pagination on query and pos on delete #200 2019-12-15 22:05:30 -03:00
leogermani bccc745806 Disabling old Bulk Edit Class and tests #200 2019-12-13 18:33:35 -03:00
leogermani 2528fd9034 remove deprecated tests from old bulk edit #200 2019-12-13 18:23:38 -03:00
leogermani 559e09ea31 add refactored tests for bulk edit #200 2019-12-13 18:23:16 -03:00
leogermani 453cc4b8a1 fix capablities list in roles retunr #274 2019-12-11 19:11:21 -03:00
leogermani 04ed966369 Refactoring Sequence Edit API #200
Sequence edit now do not rely on Bulk edit actions.
Front end still needs to change
2019-12-10 22:15:50 -03:00
leogermani a472915b11 fix capabilities validation api roles #274 2019-12-10 16:51:05 -03:00
Vinícius Nunes c2f02e048d fix tests #200 2019-12-10 12:56:30 -03:00
leogermani 907d0df7b9 open context edit #274
context edit was basicaluu only hiding entity permissions.
No sensitive information. Removed cause needed in front-end
If sensitive info is added, check shoud be done when building response
2019-12-09 18:16:35 -03:00
leogermani 221e6b3ab8 return only tainacan caps on roles endpoint #274 2019-12-09 17:20:37 -03:00
leogermani f6527c5067 fix one test. waiting for others #200 2019-12-06 19:59:52 -03:00
leogermani 0b1460cd1a validate caps on roles endpoint #274 2019-12-06 16:53:49 -03:00
leogermani 5ce4707230 add capabilities param to POST and PATCH roles #274 2019-12-02 16:35:34 -03:00
leogermani f1dc8cc77e add secondary orderby ID to items query #337 2019-11-29 18:34:38 -03:00
leogermani fbd6e105ce always get fresh related collection #339 2019-11-29 17:27:47 -03:00
Vinícius Nunes c3b4a1517a add sort metadata on test duplicate items 2019-11-18 11:31:54 -03:00