aboutsummaryrefslogtreecommitdiffstats
path: root/tests/session
Commit message (Collapse)AuthorAgeFilesLines
...
* | | [ticket/11620] Abstracted session setUp into a test_case classasperous2013-07-224-56/+8
| | | | | | | | | | | | | | | | | | | | | When defining a database test case with a setUp function, it is important to call the parent's setup function, because that is when the database is setup. PHPBB3-11620
* | | [ticket/11620] Removed unnecessary lines and whitespaceAndy Chase2013-07-091-4/+3
| | | | | | | | | | | | PHPBB3-11620
* | | [ticket/11620] Rename provider -> mock_auth_providerAndy Chase2013-07-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Rename the class and file name to better match what the class is mocking, as well as implement the interface of that class. PHPBB3-11620
* | | [ticket/11620] Minor changes to tests for coding standardsAndy Chase2013-07-084-20/+28
| | | | | | | | | | | | PHPBB3-11620
* | | [ticket/11620] Implemented a provider mock object.Andy Chase2013-07-051-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | Due to an auth_refactor, there is a new dependency in session.php on phpbb_container and a provider. For purposes of testing, implemented a simple one. PHPBB3-11620
* | | [ticket/11620] Reworked create_test without data providerAndy Chase2013-07-051-42/+11
| | | | | | | | | | | | PHPBB3-11620
* | | [ticket/11620] Add create_test with test for bot detectionAndy Chase2013-07-052-10/+102
| | | | | | | | | | | | | | | | | | | | | Added a test for the creation of a session with a simple test for detecting whether a bot is present. PHPBB3-11620
* | | [ticket/11620] Fix typo and confusingly named testAndy Chase2013-07-051-2/+2
| | | | | | | | | | | | PHPBB3-11620
* | | [ticket/11620] Add indentation, change quote style.Andy Chase2013-07-051-17/+17
| | | | | | | | | | | | | | | | | | | | | indentation is probably more important than 80 characters per line apparently. Single quotes instead of double per coding guidelines. PHPBB3-11620
* | | [ticket/11620] Add validate_referrer testAndy Chase2013-07-052-1/+95
| | | | | | | | | | | | | | | | | | Add a test for the validate_referrer function. PHPBB3-11620
* | | [ticket/11620] Remove unneeded functions from testable facadeAndy Chase2013-07-051-49/+0
| | | | | | | | | | | | | | | | | | | | | | | | There are functions listed in testable facade that don't have a lot of dependencies, instead mostly just take the input and perform database functions on them. These can be tested without a testable facade function and so will be removed. PHPBB3-11620
* | | [ticket/11620] Add ipv6 test cases and remove extra arguments.Andy Chase2013-07-051-3/+5
| | | | | | | | | | | | PHPBB3-11620
* | | [ticket/11620] Make testable_facade non-static, expand.Andy Chase2013-07-053-25/+132
| | | | | | | | | | | | | | | | | | | | | Make the class functions of testable_facade no longer static methods, but a class based one and expand the methods to be filled in, in later commits. PHPBB3-11620
* | | [ticket/11620] Add commas in extract_page_testAndy Chase2013-07-051-5/+5
| | | | | | | | | | | | PHPBB3-11620
* | | [ticket/11620] Fix quotes in extract_hostname_testAndy Chase2013-07-051-7/+7
| | | | | | | | | | | | PHPBB3-11620
* | | [ticket/11620] Add extract_current_hostnameAndy Chase2013-07-052-1/+68
| | | | | | | | | | | | | | | | | | Add a tests for extracting the current hostname from session. PHPBB3-11620
* | | [ticket/11620] Add data provider to extract_pageAndy Chase2013-07-051-14/+91
| | | | | | | | | | | | | | | | | | | | | | | | These test cases were taken from a live session, more test cases should be added to test specific functionality in this function. PHPBB3-11620
* | | [ticket/11620] Rename class_functions_test -> extract_page_testAndy Chase2013-07-051-1/+1
| | | | | | | | | | | | | | | | | | | | | Renaming this file because it is going to contain a large data provider, so I'd rather split this test out. PHPBB3-11620
* | | [ticket/11620] Remove accidental argument from testable_facade.Andy Chase2013-07-051-1/+1
| | | | | | | | | | | | PHPBB3-11620
* | | [ticket/11620] Add test for test_extract_current_pageAndy Chase2013-07-051-0/+49
| | | | | | | | | | | | PHPBB3-11620
* | | [ticket/11620] Add testable facade for sessions.phpAndy Chase2013-07-051-0/+49
|/ / | | | | | | | | | | | | | | | | | | Since many functions in session.php have global variables inside the function, this exposes those functions through a testable facade that uses testable_factory's mock global variables to modify global variables used in the functions. This is using the facade pattern to provide a testable "front" to the functions in sessions.php. PHPBB3-11620
* | Merge remote-tracking branch 'Hardolaf/feature/auth-refactor' into developDavid King2013-07-032-0/+26
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Hardolaf/feature/auth-refactor: (44 commits) [feature/auth-refactor] Fix code style issue [feature/auth-refactor] Fix comment grammar [feature/auth-refactor] Fix the actual cause of test failures [feature/auth-refactor] A possible fix for the functional test failures [feature/auth-refactor] Forgot @inheritdoc on methods [feature/auth-refactor] Finish and clean up documentation [feature/auth-refactor] Change phpEx to php_ext in new classes [feature/auth-refactor] Fix two session tests broken by changes [feature/auth-refactor] Removed no longer used variable [feature/auth-refactor] Fix errors in acp_board [feature/auth-refactor] Fix indentation on acp_board [feature/auth-refactor] Refactor auth in acp_board [feature/auth-refactor] Don't truncate name then reattach same thing [feature/auth-refactor] Remove old auth plugins [feature/auth-refactor] Remove references to old auth plugins [feature/auth-refactor] Fix auth tests to use mock objects correctly [feature/auth-refactor] Test validate_session on provider_apache [feature/auth-refactor] Test autologin() on provider_apache [feature/auth-refactor] Test login() for provider_apache [feature/auth-refactor] Test for init on provider_apache ...
| * | [feature/auth-refactor] Fix two session tests broken by changesJoseph Warner2013-06-262-0/+26
| | | | | | | | | | | | PHPBB3-9734
* | | Merge branch 'develop-olympus' into developAndreas Fischer2013-06-271-3/+4
|\ \ \ | |/ / |/| / | |/ | | | | | | | | * develop-olympus: [ticket/11615] Fix typo in creation_test [ticket/11615] Remove magic number in creation_test [ticket/11615] Rename class in file to match [ticket/11615] Rename init_test to creation_test for clarity
| * [ticket/11615] Fix typo in creation_testAndy Chase2013-06-261-1/+1
| | | | | | | | PHPBB3-11615
| * [ticket/11615] Remove magic number in creation_testAndy Chase2013-06-261-1/+2
| | | | | | | | | | | | | | | | Removing this magic number to its own variable with clean multiplication makes it clear what the number represents. PHPBB3-11615
| * [ticket/11615] Rename class in file to matchAndy Chase2013-06-261-1/+1
| | | | | | | | PHPBB3-11615
| * [ticket/11615] Rename init_test to creation_test for clarityAndy Chase2013-06-261-0/+0
| | | | | | | | PHPBB3-11615
| * [ticket/11248] Line endings to LF.Oleg Pudeyev2012-12-051-51/+50
| | | | | | | | PHPBB3-11248
* | Merge remote-tracking branch 'p/ticket/11248' into developAndreas Fischer2012-12-221-54/+54
|\ \ | | | | | | | | | | | | * p/ticket/11248: [ticket/11248] Convert line endings to LF - develop edition.
| * | [ticket/11248] Convert line endings to LF - develop edition.Oleg Pudeyev2012-12-071-54/+54
| | | | | | | | | | | | PHPBB3-11248
* | | [ticket/11015] Change more docblocks.Oleg Pudeyev2012-12-041-1/+1
| | | | | | | | | | | | PHPBB3-11015
* | | Merge remote-tracking branch 'upstream/develop' into ticket/11015Igor Wiedler2012-11-121-0/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/develop: (666 commits) [ticket/11077] Remove code from old global announcements system [ticket/11189] Replace DEBUG_EXTRA with DEBUG [ticket/11189] Always log critical errors when in cron or in image output [ticket/11187] Added a blank array to fix errors in functional tests [ticket/10780] Make L_COLON available in the installer. [ticket/11183] Remove $load_extensions and weird dl() calls [ticket/10970] Added extra documentation to parse_dynamic_path. [ticket/10939] Added documentation for phpbb_request::file [ticket/10865] Use code tags for install/database_update.php. [ticket/10865] Should have been a slash. [ticket/10780] Use L_COLON on LDAP page. [ticket/10780] Use L_COLON on search backend ACP pages. [ticket/10780] Use L_COLON for "download all attachments". [ticket/10780] Use colon from language in ucp_pm_compose.php where possible. [ticket/10780] Replace colons in phpBB/adm/style/acp_ext_details.html. [ticket/10780] Replace colon usage in adm template output with {L_COLON} [ticket/10780] Replace colon usage in template output with {L_COLON} [ticket/11181] Bump PHP requirement to 5.3.3 (from 5.3.2) [develop-olympus] [ticket/11181] Bump PHP requirement to 5.3.3 (from 5.3.2) [ticket/10172] Show prosilver birthday list even if there are no birthdays. ... Conflicts: phpBB/common.php phpBB/download/file.php phpBB/includes/db/dbal.php phpBB/includes/db/firebird.php phpBB/includes/db/mssql.php phpBB/includes/db/mssql_odbc.php phpBB/includes/db/mssqlnative.php phpBB/includes/db/mysql.php phpBB/includes/db/mysqli.php phpBB/includes/db/oracle.php phpBB/includes/db/postgres.php phpBB/includes/db/sqlite.php phpBB/includes/extension/manager.php phpBB/install/database_update.php
| * | [feature/add_events] Re-fix broken testDavid King2012-08-211-0/+3
| | | | | | | | | | | | PHPBB3-9550
* | | [ticket/11015] Make DBAL classes autoloadableIgor Wiedler2012-07-211-1/+1
|/ / | | | | | | | | | | | | | | PHPBB3-11015 This allows us to just create the object without having to include the driver first. However, it also means that users must specify the full class name in config.php
* | [ticket/10973] Drop all require_once for mocks. Use autoloading.Andreas Fischer2012-07-083-5/+0
| | | | | | | | PHPBB3-10973
* | Merge branch 'develop-olympus' into developAndreas Fischer2012-01-024-4/+4
|\ \ | |/ | | | | | | | | | | | | | | | | * develop-olympus: [ticket/9916] Changing header in non-distributed files [ticket/9916] Changing coding guidelines license [ticket/9916] Updating License in the header Conflicts: tests/mock/cache.php
| * [ticket/9916] Updating License in the headerUnknown2012-01-024-4/+4
| | | | | | | | PHPBB3-9916
* | Merge branch 'develop-olympus' into developOleg Pudeyev2011-11-252-0/+32
|\ \ | |/ | | | | | | * develop-olympus: [ticket/10483] Fix test suite when running with MySQL strict mode
| * [ticket/10483] Fix test suite when running with MySQL strict modeIgor Wiedler2011-11-212-0/+32
| | | | | | | | PHPBB3-10483
* | Merge branch 'develop-olympus' into developOleg Pudeyev2011-09-051-0/+51
|\ \ | |/ | | | | | | | | * develop-olympus: [ticket/10321] Add descriptions to the unit tests [ticket/10321] Do not append the ? if the param-list is empty anyway.
| * [ticket/10321] Add descriptions to the unit testsJoas Schilling2011-08-211-15/+15
| | | | | | | | PHPBB3-10321
| * [ticket/10321] Do not append the ? if the param-list is empty anyway.Joas Schilling2011-08-211-0/+51
| | | | | | | | PHPBB3-10321
* | [feature/request-class] Fix session_testable_factoryIgor Wiedler2011-08-191-3/+2
| | | | | | | | PHPBB3-9716
* | Merge branch 'develop-olympus' into developOleg Pudeyev2011-03-232-7/+11
|\ \ | |/ | | | | | | * develop-olympus: [ticket/10082] session_id is CHAR(32) not VARCHAR(32), so give them a CHAR(32).
| * [ticket/10082] session_id is CHAR(32) not VARCHAR(32), so give them a CHAR(32).Andreas Fischer2011-03-192-7/+11
| | | | | | | | | | | | This fixes session unit tests on PostgreSQL in particular. PHPBB3-10082
* | Merge branch 'develop-olympus' into developIgor Wiedler2011-02-271-15/+36
|\ \ | |/ | | | | | | | | | | | | | | | | | | * 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] Make result check independent of returned row order.Nils Adermann2011-02-271-3/+4
| | | | | | | | PHPBB3-9732
| * [task/session-tests] Correctly display message on session continue test failureNils Adermann2011-02-271-1/+1
| | | | | | | | PHPBB3-9732
| * [task/session-tests] Make the session id replacement of dataset values clearerNils Adermann2011-02-271-12/+32
| | | | | | | | PHPBB3-9732