aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'develop-olympus' into developIgor Wiedler2011-09-051-0/+22
|\ | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10240] Added optionset to mock_user in the tests. [ticket/10240] Fixed copyright year in censor_text_test.php. [ticket/10240] Fixed censor_text test assetEquals param order. [ticket/10240] Added censor_text tests for special characters. [ticket/10240] Added censor_text tests. Conflicts: tests/mock/cache.php
| * [ticket/10240] Added censor_text tests.Callum Macrae2011-08-221-0/+22
| | | | | | | | PHPBB-10240
* | [feature/request-class] Remove $html_encode arg, force manual decodingIgor Wiedler2011-08-181-4/+4
| | | | | | | | PHPBB3-9716
* | [feature/request-class] Add is_secure method to request for HTTPSIgor Wiedler2011-08-181-0/+5
| | | | | | | | PHPBB3-9716
* | [feature/request-class] Minor spacing CS adjustmentsIgor Wiedler2011-07-161-2/+2
| | | | | | | | PHPBB3-9716
* | [feature/request-class] Add server(), header() and is_ajax() to requestIgor Wiedler2011-07-151-2/+33
| | | | | | | | | | | | | | | | | | | | | | | | Extend the request class with helpers for reading server vars (server()) and HTTP request headers (header()). Refactor the existing code base to make use of these helpers, make $_SERVER a deactivated super global. Also introduce an is_ajax() method, which checks the X-Requested-With header for the value 'XMLHttpRequest', which is sent by JavaScript libraries, such as jQuery. PHPBB3-9716
* | Merge branch 'develop-olympus' into developIgor Wiedler2011-03-121-0/+5
|\ \ | |/ | | | | | | * develop-olympus: [ticket/10088] Also ignore DBMS versions other than MySQLi in cache mock.
| * [ticket/10088] Also ignore DBMS versions other than MySQLi in cache mock.Andreas Fischer2011-03-121-0/+5
| | | | | | | | PHPBB3-10088
* | Merge branch 'develop-olympus' into developIgor Wiedler2011-02-271-2/+9
|\ \ | |/ | | | | | | | | | | | | | | | | | | * develop-olympus: [task/session-tests] Make result check independent of returned row order. [task/session-tests] By default the cache check now skips over db server info [task/session-tests] Correctly display message on session continue test failure [task/session-tests] Make the session id replacement of dataset values clearer Conflicts: tests/mock/cache.php
| * [task/session-tests] By default the cache check now skips over db server infoNils Adermann2011-02-271-2/+9
| | | | | | | | PHPBB3-9732
* | Merge branch 'develop-olympus' into developNils Adermann2011-02-242-0/+53
|\ \ | |/ | | | | | | | | * develop-olympus: [ticket/10052] Add comments to the session testable factory. [ticket/10052] Correct session tests, and separate session factory from tests
| * [ticket/10052] Correct session tests, and separate session factory from testsNils Adermann2011-02-231-0/+7
| | | | | | | | PHPBB3-10052
* | Merge branch 'develop-olympus' into developAndreas Fischer2011-02-201-2/+2
|\ \ | |/ | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10049] Mark session init test incomplete for now. [ticket/10049] Mark session continue test incomplete for now. [ticket/10049] Globalize $_SID. [ticket/10049] Chase assertResultEquals rename. [ticket/10049] Fixed requires in session tests and mock. [ticket/10049] Renamed session test files to proper file names.
| * [ticket/10049] Fixed requires in session tests and mock.Oleg Pudeyev2011-02-191-2/+2
| | | | | | | | PHPBB3-10049
* | [ticket/9823] Move mock file into the mock/ folder.Joas Schilling2011-02-011-0/+33
| | | | | | | | PHPBB3-9823
* | Merge branch 'develop-olympus' into developNils Adermann2011-01-232-0/+61
|\ \ | |/ | | | | | | | | | | | | | | | | * develop-olympus: [task/session-tests] Renamed assertSqlResultEquals and fixed its param order [task/session-tests] Test additional combinations of session_begin. [task/session-tests] Added tests for the session class. Conflicts: tests/mock/cache.php
| * [task/session-tests] Added tests for the session class.Nils Adermann2011-01-202-0/+117
| | | | | | | | | | | Two first simple tests to check functionality of session_begin and session_create. Added a mock class for the cache as well as a subclass of session which has its cookie handling function mocked out to avoid header sending problems. PHPBB3-9732
* [task/config-class] Implemented a config class to replace the global array.Nils Adermann2011-01-101-0/+6
| | | | | | | | | | | | | | | There is a phpbb_config class which simply holds an array and does not persist any data. It implements ArrayAccess, Countable and IteratorAggregate to allow regular use of configuration as if it was still an array. The phpbb_config_db class depends on an instance of the dbal and a cache driver. It obtains the configuration data from cache and database as necessary and persists data to the database. The functions set_config and set_config_count remain for backward compatability but they only call methods on the new config class now instead of directly manipulating the database and cache. PHPBB3-9988
* [task/acm-refactor] Cleaning up left over mentions of ACM and fixing tests.Nils Adermann2011-01-091-0/+87
PHPBB3-9983