cakephp2-php8/lib/Cake/Test/Case/Controller/Component
Mark Story mark@mark-story.com bb3a1d546b Fixing RequesHandler::prefers(). It was previously entirely wrong.
It took the ordered list of accept types, and blindly assumed
the first in the list was the most preferred.  This is an incorrect
assumption to make, as all types with the same q value are equal.

- Using CakeRequest::parseAccept() to access only the most preferred
content types.
- Using in_array() to check for the desired type.
- Updating tests for RequestHandler.
2011-09-01 00:20:54 +01:00
..
Auth Removed the @access and @static. 2011-07-30 20:56:48 -04:00
AclComponentTest.php Removed the @access and @static. 2011-07-30 20:56:48 -04:00
AuthComponentTest.php Fixed the allow method to parameters not be required. 2011-08-30 21:12:57 -04:00
CookieComponentTest.php Removed the @access and @static. 2011-07-30 20:56:48 -04:00
EmailComponentTest.php Removed the @access and @static. 2011-07-30 20:56:48 -04:00
PaginatorComponentTest.php Removed the @access and @static. 2011-07-30 20:56:48 -04:00
RequestHandlerComponentTest.php Fixing RequesHandler::prefers(). It was previously entirely wrong. 2011-09-01 00:20:54 +01:00
SecurityComponentTest.php Adding visibility keywords to code that came from 2011-08-16 22:40:38 -04:00
SessionComponentTest.php Removed the @access and @static. 2011-07-30 20:56:48 -04:00