mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing typo in Cache doc block.
Updating formatting in Xcache doc block. Fixing Xcache test case so it passes when username and password are not user & password.
This commit is contained in:
parent
a33bd1d144
commit
b1c89496c5
3 changed files with 15 additions and 11 deletions
|
@ -468,7 +468,7 @@ class CacheEngine {
|
|||
var $settings = array();
|
||||
|
||||
/**
|
||||
* Iitialize the cache engine
|
||||
* Initialize the cache engine
|
||||
*
|
||||
* Called automatically by the cache frontend
|
||||
*
|
||||
|
|
7
cake/libs/cache/xcache.php
vendored
7
cake/libs/cache/xcache.php
vendored
|
@ -29,9 +29,10 @@
|
|||
class XcacheEngine extends CacheEngine {
|
||||
|
||||
/**
|
||||
* settings
|
||||
* PHP_AUTH_USER = xcache.admin.user, default cake
|
||||
* PHP_AUTH_PW = xcache.admin.password, default cake
|
||||
* Settings
|
||||
*
|
||||
* - PHP_AUTH_USER = xcache.admin.user, default cake
|
||||
* - PHP_AUTH_PW = xcache.admin.password, default cake
|
||||
*
|
||||
* @var array
|
||||
* @access public
|
||||
|
|
17
cake/tests/cases/libs/cache/xcache.test.php
vendored
17
cake/tests/cases/libs/cache/xcache.test.php
vendored
|
@ -76,13 +76,16 @@ class XcacheEngineTest extends UnitTestCase {
|
|||
*/
|
||||
function testSettings() {
|
||||
$settings = Cache::settings();
|
||||
$expecting = array('prefix' => 'cake_',
|
||||
'duration'=> 3600,
|
||||
'probability' => 100,
|
||||
'engine' => 'Xcache',
|
||||
'PHP_AUTH_USER' => 'user',
|
||||
'PHP_AUTH_PW' => 'password',
|
||||
);
|
||||
$expecting = array(
|
||||
'prefix' => 'cake_',
|
||||
'duration'=> 3600,
|
||||
'probability' => 100,
|
||||
'engine' => 'Xcache',
|
||||
);
|
||||
$this->assertTrue(isset($settings['PHP_AUTH_USER']));
|
||||
$this->assertTrue(isset($settings['PHP_AUTH_PW']));
|
||||
|
||||
unset($settings['PHP_AUTH_USER'], $settings['PHP_AUTH_PW']);
|
||||
$this->assertEqual($settings, $expecting);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue