summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/libraries
AgeCommit message (Collapse)AuthorFilesLines
2020-06-24Fix user guide urlsapics1-2/+2
Replace from https://codeigniter.com/user_guide/* to https://codeigniter.com/userguide3/*
2019-09-19Merge branch '3.1-stable' into developAndrey Andreev1-0/+3
Conflicts resolved: system/core/CodeIgniter.php system/libraries/Cache/drivers/Cache_redis.php system/libraries/Session/drivers/Session_redis_driver.php user_guide_src/source/changelog.rst user_guide_src/source/conf.py user_guide_src/source/installation/downloads.rst user_guide_src/source/installation/upgrading.rst
2019-05-10[ci skip] Fix #5755Andrey Andreev1-0/+3
2017-12-20Merge pull request #5354 from carusogabriel/refactoring-testsAndrey Andreev3-14/+14
Refactoring tests Conflicts resolved: tests/codeigniter/core/Utf8_test.php tests/codeigniter/database/query_builder/group_test.php tests/codeigniter/libraries/Form_validation_test.php
2017-12-20Refactoring testsGabriel Caruso3-15/+15
2017-10-12Merge pull request #5289 from zploskey/cleanup_form_validation_testsAndrey Andreev1-19/+21
Clean up form validation tests
2017-10-11Clean up form validation testsZach Ploskey1-21/+21
Remove a number unnecessary calls to reset_validation(). A new form_validation object is already initialized for every test in set_up(), so these lines do nothing unless multiple validations are done in the same test. Explicitly empty the $_POST array after each test that modifies it. Signed-off-by: Zach Ploskey <zach@ploskey.com>
2017-10-06Fix issue 5202Zach Ploskey1-0/+14
Fix attempting to access data_ref before it is defined when validating an array input with multiple explicitly specified keys. Adds a test for the issue. Signed-off-by: Zach Ploskey <zach@ploskey.com>
2017-06-22Implement #2436 (access to FV processed data)Andrey Andreev1-0/+18
2017-06-21Implement #193: Validating entire arrays in a single function callAndrey Andreev1-1/+7
2017-06-19Merge branch '3.1-stable' into developAndrey Andreev1-0/+1
Conflicts resolved: system/core/CodeIgniter.php tests/codeigniter/libraries/Form_validation_test.php user_guide_src/source/changelog.rst user_guide_src/source/conf.py user_guide_src/source/installation/downloads.rst user_guide_src/source/installation/upgrading.rst
2017-06-19[ci skip] Fix a bug in FV valid_email()Andrey Andreev1-1/+1
2017-03-24Merge branch '3.1-stable' into developAndrey Andreev1-2/+14
Conflicts resolved: system/core/CodeIgniter.php system/core/Common.php system/core/Input.php system/helpers/cookie_helper.php tests/codeigniter/helpers/html_helper_test.php user_guide_src/source/changelog.rst user_guide_src/source/conf.py user_guide_src/source/installation/downloads.rst user_guide_src/source/installation/upgrading.rst user_guide_src/source/libraries/input.rst
2017-01-19Fix byte-safety issues & actually test for themAndrey Andreev1-2/+14
2017-01-06Add valid_mac() FV ruleAndrey Andreev1-2/+13
Close #3992
2016-12-14Move csrf_verify() call out of CI_InputAndrey Andreev3-5/+6
2016-12-14Isolate CI_Security instantiation from CI_Input; improve testsAndrey Andreev1-3/+1
2016-12-01Remove previously deprecated FV Library method/rule prep_for_form()Andrey Andreev1-14/+0
2016-10-20FV: throw BadMethodCallException when set_rules() called withoutAndrey Andreev1-0/+6
2016-08-22Skip mcrypt-related testcases on PHP 7.1Andrey Andreev2-2/+14
ext/mcrypt is deprecated and the test cases in question trigger E_DEPRECATED messages as a result.
2016-08-10Add changelog entry and a test case for #4758Andrey Andreev1-0/+3
2016-08-10Use getMockBuilder() in PHPUnit instead of the deprecated getMock()Andrey Andreev4-9/+9
2016-07-28Remove dead code written for PHP 5.2Andrey Andreev1-8/+4
2016-05-25Fix #4639Andrey Andreev1-2/+13
Really fix #4633
2016-05-17Fix #4633Andrey Andreev1-1/+1
2016-03-12Fix #4516Andrey Andreev1-0/+10
2016-01-30Fix #4415 and add unit tests for https://bugs.php.net/bug.php?id=51192Andrey Andreev1-0/+7
2016-01-11Alter a valid URL testAndrey Andreev1-1/+1
2015-08-03[ci skip] Normalize tabs/spacesAndrey Andreev1-5/+6
Partial changes from PR #4016
2015-04-01[ci skip] Whitespace cleanup following PR #3716Andrey Andreev1-29/+29
2015-04-01Style changes and variable name changesDavid Woods1-22/+21
2015-03-30Fix for parsing error in PHP 5.2 and 5.3David Woods1-1/+2
2015-03-30Corrected unit tests for set_select, set_radio, and set_checkboxDavid Woods1-32/+27
Coverage now at ~75%
2015-03-30Added more unit tests to CI_Form_validationDavid Woods1-0/+147
Unit tests for set_select, set_checkbox, and set_radio currently all fail for the same reason. Signed-off-by: David Woods <d.woods92@gmail.com>
2015-03-28Added more units tests for Form_validationDavid Woods1-2/+108
Up to 65% coverage Signed-off-by: David Woods <d.woods92@gmail.com>
2015-03-26Polish changes from PR #3678Andrey Andreev1-91/+63
... and make it run on 5.2.
2015-03-22Corrected invalid matches, differs, and set_data test casesDavid Woods1-34/+61
Signed-off-by: David Woods <d.woods92@gmail.com>
2015-03-21Changed scenario based tests to unit testsDavid Woods1-148/+175
Added tests for set_data() & set_message() Signed-off-by: David Woods <d.woods92@gmail.com>
2015-03-18Switched spaces to tabs on the few lines that were missed from previous ↵David Woods1-7/+7
refactors Signed-off-by: David Woods <d.woods92@gmail.com>
2015-03-18Fixed bug of clearing POST array before every test.David Woods1-12/+14
Signed-off-by: David Woods <d.woods92@gmail.com>
2015-03-18Corrected incorrect assertion in test_rule_valid_base64David Woods1-1/+1
Signed-off-by: David Woods <d.woods92@gmail.com>
2015-03-18Corrected match, differs, base64, and valid_url test cases.David Woods1-307/+310
Also changed spaces to tabs Signed-off-by: David Woods <d.woods92@gmail.com>
2015-03-17Corrected an invalid test caseDavid Woods1-2/+2
Signed-off-by: David Woods <d.woods92@gmail.com>
2015-03-17Reformatted unit tests for easier debuggingDavid Woods1-114/+265
Signed-off-by: David Woods <d.woods92@gmail.com>
2015-03-17Fixed bugs in form_validation for methods matches, differs, and valid_base64.David Woods1-4/+132
Implemented tests for valid and invalid inputs for all basic rules available for form_validation. The invalid input data currently doesn't pass all tests. Signed-off-by: David Woods <d.woods92@gmail.com>
2015-03-17Created setup and construct for Form_Validation unit testDavid Woods1-0/+35
Signed-off-by: David Woods <d.woods92@gmail.com>
2014-11-11Fix merge conflictsAndrey Andreev1-3/+4
2014-11-07Fix #3317 ... MCrypt sucksAndrey Andreev1-3/+4
2014-10-05Merge branch 'develop' into feature/sessionAndrey Andreev2-34/+9
2014-08-14Skip CI_Encrypt tests if MCrypt is not availableAndrey Andreev1-26/+8
Rel: #3185