Merge branch 'master' into 2.4

Conflicts:
	lib/Cake/Controller/Component/AuthComponent.php
This commit is contained in:
ADmad 2013-07-14 10:58:55 +05:30
commit d161b21ae1
146 changed files with 207 additions and 920 deletions

View file

@ -79,7 +79,8 @@ if (!defined('WWW_ROOT')) {
// for built-in server // for built-in server
if (php_sapi_name() == 'cli-server') { if (php_sapi_name() == 'cli-server') {
if ($_SERVER['REQUEST_URI'] !== '/' && file_exists(WWW_ROOT . $_SERVER['REQUEST_URI'])) { $uri = str_replace($_SERVER['SCRIPT_FILENAME'], WWW_ROOT, '');
if ($_SERVER['REQUEST_URI'] !== '/' && file_exists(WWW_ROOT . $uri)) {
return false; return false;
} }
$_SERVER['PHP_SELF'] = '/' . basename(__FILE__); $_SERVER['PHP_SELF'] = '/' . basename(__FILE__);

View file

@ -130,7 +130,7 @@ class ServerShell extends AppShell {
$this->_host, $this->_host,
$this->_port, $this->_port,
$this->_documentRoot, $this->_documentRoot,
WWW_ROOT . '/index.php' $this->_documentRoot . '/index.php'
); );
$port = ($this->_port == self::DEFAULT_PORT) ? '' : ':' . $this->_port; $port = ($this->_port == self::DEFAULT_PORT) ? '' : ':' . $this->_port;

View file

@ -443,7 +443,7 @@ class ExtractTask extends AppShell {
$plugins = array(null); $plugins = array(null);
if (empty($this->params['exclude-plugins'])) { if (empty($this->params['exclude-plugins'])) {
$plugins = array_merge($plugins, App::objects('plugins')); $plugins = array_merge($plugins, App::objects('plugin', null, false));
} }
foreach ($plugins as $plugin) { foreach ($plugins as $plugin) {
$this->_extractPluginValidationMessages($plugin); $this->_extractPluginValidationMessages($plugin);

View file

@ -338,7 +338,6 @@ class TestShell extends Shell {
* @param string $file * @param string $file
* @param string $category * @param string $category
* @param boolean $throwOnMissingFile * @param boolean $throwOnMissingFile
* @access protected
* @return array array(type, case) * @return array array(type, case)
* @throws Exception * @throws Exception
*/ */
@ -414,7 +413,6 @@ class TestShell extends Shell {
* For the given file, what category of test is it? returns app, core or the name of the plugin * For the given file, what category of test is it? returns app, core or the name of the plugin
* *
* @param string $file * @param string $file
* @access protected
* @return string * @return string
*/ */
protected function _mapFileToCategory($file) { protected function _mapFileToCategory($file) {

View file

@ -70,7 +70,8 @@ if (!defined('WWW_ROOT')) {
// for built-in server // for built-in server
if (php_sapi_name() === 'cli-server') { if (php_sapi_name() === 'cli-server') {
if ($_SERVER['REQUEST_URI'] !== '/' && file_exists(WWW_ROOT . $_SERVER['REQUEST_URI'])) { $uri = str_replace($_SERVER['SCRIPT_FILENAME'], WWW_ROOT, '');
if ($_SERVER['REQUEST_URI'] !== '/' && file_exists(WWW_ROOT . $uri)) {
return false; return false;
} }
$_SERVER['PHP_SELF'] = '/' . basename(__FILE__); $_SERVER['PHP_SELF'] = '/' . basename(__FILE__);

View file

@ -722,7 +722,6 @@ class AuthComponent extends Component {
$this->Session->write('Auth.redirect', $redir); $this->Session->write('Auth.redirect', $redir);
} elseif ($this->Session->check('Auth.redirect')) { } elseif ($this->Session->check('Auth.redirect')) {
$redir = $this->Session->read('Auth.redirect'); $redir = $this->Session->read('Auth.redirect');
$redir = is_string($redir) ? ltrim($redir, '/') : $redir;
$this->Session->delete('Auth.redirect'); $this->Session->delete('Auth.redirect');
if (Router::normalize($redir) == Router::normalize($this->loginAction)) { if (Router::normalize($redir) == Router::normalize($this->loginAction)) {
@ -733,7 +732,10 @@ class AuthComponent extends Component {
} else { } else {
$redir = '/'; $redir = '/';
} }
return Router::normalize($redir); if (is_array($redir)) {
return Router::url($redir);
}
return $redir;
} }
/** /**

View file

@ -542,7 +542,8 @@ class App {
$parts = explode('.', self::$_classMap[$className], 2); $parts = explode('.', self::$_classMap[$className], 2);
list($plugin, $package) = count($parts) > 1 ? $parts : array(null, current($parts)); list($plugin, $package) = count($parts) > 1 ? $parts : array(null, current($parts));
if ($file = self::_mapped($className, $plugin)) { $file = self::_mapped($className, $plugin);
if ($file) {
return include $file; return include $file;
} }
$paths = self::path($package, $plugin); $paths = self::path($package, $plugin);

View file

@ -415,7 +415,6 @@ class DataSource extends Object {
* Returns the schema name. Override this in subclasses. * Returns the schema name. Override this in subclasses.
* *
* @return string schema name * @return string schema name
* @access public
*/ */
public function getSchemaName() { public function getSchemaName() {
return null; return null;
@ -425,7 +424,6 @@ class DataSource extends Object {
* Closes a connection. Override in subclasses * Closes a connection. Override in subclasses
* *
* @return boolean * @return boolean
* @access public
*/ */
public function close() { public function close() {
return $this->connected = false; return $this->connected = false;

View file

@ -95,7 +95,6 @@ class Model extends Object implements CakeEventListener {
* Holds physical schema/database name for this model. Automatically set during Model creation. * Holds physical schema/database name for this model. Automatically set during Model creation.
* *
* @var string * @var string
* @access public
*/ */
public $schemaName = null; public $schemaName = null;

View file

@ -345,6 +345,13 @@ class CakeResponse {
*/ */
protected $_file = null; protected $_file = null;
/**
* File range. Used for requesting ranges of files.
*
* @var array
*/
protected $_fileRange = null;
/** /**
* The charset the response body is encoded with * The charset the response body is encoded with
* *
@ -413,8 +420,8 @@ class CakeResponse {
$this->_sendHeader($header, $value); $this->_sendHeader($header, $value);
} }
if ($this->_file) { if ($this->_file) {
$this->_sendFile($this->_file); $this->_sendFile($this->_file, $this->_fileRange);
$this->_file = null; $this->_file = $this->_fileRange = null;
} else { } else {
$this->_sendContent($this->_body); $this->_sendContent($this->_body);
} }
@ -1204,13 +1211,18 @@ class CakeResponse {
} }
/** /**
* Setup for display or download the given file * Setup for display or download the given file.
*
* If $_SERVER['HTTP_RANGE'] is set a slice of the file will be
* returned instead of the entire file.
* *
* @param string $path Path to file
* @param array $options Options
* ### Options keys * ### Options keys
*
* - name: Alternate download name * - name: Alternate download name
* - download: If `true` sets download header and forces file to be downloaded rather than displayed in browser * - download: If `true` sets download header and forces file to be downloaded rather than displayed in browser
*
* @param string $path Path to file
* @param array $options Options See above.
* @return void * @return void
* @throws NotFoundException * @throws NotFoundException
*/ */
@ -1261,19 +1273,7 @@ class CakeResponse {
$httpRange = env('HTTP_RANGE'); $httpRange = env('HTTP_RANGE');
if (isset($httpRange)) { if (isset($httpRange)) {
list(, $range) = explode('=', $httpRange); $this->_fileRange($file, $httpRange);
$size = $fileSize - 1;
$length = $fileSize - $range;
$this->header(array(
'Content-Length' => $length,
'Content-Range' => 'bytes ' . $range . $size . '/' . $fileSize
));
$this->statusCode(206);
$file->open('rb', true);
$file->offset($range);
} else { } else {
$this->header('Content-Length', $fileSize); $this->header('Content-Length', $fileSize);
} }
@ -1281,26 +1281,76 @@ class CakeResponse {
$this->header('Content-Length', $fileSize); $this->header('Content-Length', $fileSize);
} }
$this->_clearBuffer(); $this->_clearBuffer();
$this->_file = $file; $this->_file = $file;
} }
/**
* Apply a file range to a file and set the end offset.
*
* If an invalid range is requested a 416 Status code will be used
* in the response.
*
* @param File $file The file to set a range on.
* @param string $httpRange The range to use.
* @return void
*/
protected function _fileRange($file, $httpRange) {
list(, $range) = explode('=', $httpRange);
list($start, $end) = explode('-', $range);
$fileSize = $file->size();
$lastByte = $fileSize - 1;
if ($start > $end || $end > $lastByte || $start > $lastByte) {
$this->statusCode(416);
$this->header(array(
'Content-Range' => 'bytes 0-' . $lastByte . '/' . $fileSize
));
return;
}
$this->header(array(
'Content-Length' => $end - $start + 1,
'Content-Range' => 'bytes ' . $start . '-' . $end . '/' . $fileSize
));
$this->statusCode(206);
$this->_fileRange = array($start, $end);
}
/** /**
* Reads out a file, and echos the content to the client. * Reads out a file, and echos the content to the client.
* *
* @param File $file File object * @param File $file File object
* @param array $range The range to read out of the file.
* @return boolean True is whole file is echoed successfully or false if client connection is lost in between * @return boolean True is whole file is echoed successfully or false if client connection is lost in between
*/ */
protected function _sendFile($file) { protected function _sendFile($file, $range) {
$compress = $this->outputCompressed(); $compress = $this->outputCompressed();
$file->open('rb'); $file->open('rb');
$end = $start = false;
if ($range) {
list($start, $end) = $range;
}
if ($start !== false) {
$file->offset($start);
}
$bufferSize = 8192;
set_time_limit(0);
while (!feof($file->handle)) { while (!feof($file->handle)) {
if (!$this->_isActive()) { if (!$this->_isActive()) {
$file->close(); $file->close();
return false; return false;
} }
set_time_limit(0); $offset = $file->offset();
echo fread($file->handle, 8192); if ($end && $offset >= $end) {
break;
}
if ($end && $offset + $bufferSize >= $end) {
$bufferSize = $end - $offset;
}
echo fread($file->handle, $bufferSize);
if (!$compress) { if (!$compress) {
$this->_flushBuffer(); $this->_flushBuffer();
} }

View file

@ -49,14 +49,12 @@ class RequestActionController extends Controller {
* uses property * uses property
* *
* @var array * @var array
* @access public
*/ */
public $uses = array('RequestActionPost'); public $uses = array('RequestActionPost');
/** /**
* test_request_action method * test_request_action method
* *
* @access public
* @return void * @return void
*/ */
public function test_request_action() { public function test_request_action() {
@ -68,7 +66,6 @@ class RequestActionController extends Controller {
* *
* @param mixed $id * @param mixed $id
* @param mixed $other * @param mixed $other
* @access public
* @return void * @return void
*/ */
public function another_ra_test($id, $other) { public function another_ra_test($id, $other) {

View file

@ -533,7 +533,6 @@ class CakeSchemaTest extends CakeTestCase {
/** /**
* testSchemaReadWithAppModel method * testSchemaReadWithAppModel method
* *
* @access public
* @return void * @return void
*/ */
public function testSchemaReadWithAppModel() { public function testSchemaReadWithAppModel() {

View file

@ -239,7 +239,6 @@ class ModelIntegrationTest extends BaseModelTest {
/** /**
* testFindWithJoinsOption method * testFindWithJoinsOption method
* *
* @access public
* @return void * @return void
*/ */
public function testFindWithJoinsOption() { public function testFindWithJoinsOption() {

View file

@ -63,7 +63,6 @@ class ModelWriteTest extends BaseModelTest {
/** /**
* testInsertAnotherHabtmRecordWithSameForeignKey method * testInsertAnotherHabtmRecordWithSameForeignKey method
* *
* @access public
* @return void * @return void
*/ */
public function testInsertAnotherHabtmRecordWithSameForeignKey() { public function testInsertAnotherHabtmRecordWithSameForeignKey() {
@ -511,7 +510,6 @@ class ModelWriteTest extends BaseModelTest {
/** /**
* Tests having multiple counter caches for an associated model * Tests having multiple counter caches for an associated model
* *
* @access public
* @return void * @return void
*/ */
public function testCounterCacheMultipleCaches() { public function testCounterCacheMultipleCaches() {

View file

@ -1,9 +1,5 @@
<?php <?php
/** /**
* CakeResponse Test case file.
*
* PHP 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
* *
@ -1389,4 +1385,100 @@ class CakeResponseTest extends CakeTestCase {
$response->file(CAKE . 'Test' . DS . 'test_app' . DS . 'Vendor' . DS . 'img' . DS . 'test_2.JPG'); $response->file(CAKE . 'Test' . DS . 'test_app' . DS . 'Vendor' . DS . 'img' . DS . 'test_2.JPG');
} }
/**
* Test fetching ranges from a file.
*
* @return void
*/
public function testFileRange() {
$_SERVER['HTTP_RANGE'] = 'bytes=8-25';
$response = $this->getMock('CakeResponse', array(
'header',
'type',
'_sendHeader',
'_setContentType',
'_isActive',
'_clearBuffer',
'_flushBuffer'
));
$response->expects($this->exactly(1))
->method('type')
->with('css')
->will($this->returnArgument(0));
$response->expects($this->at(1))
->method('header')
->with('Content-Disposition', 'attachment; filename="test_asset.css"');
$response->expects($this->at(2))
->method('header')
->with('Accept-Ranges', 'bytes');
$response->expects($this->at(3))
->method('header')
->with(array(
'Content-Length' => 18,
'Content-Range' => 'bytes 8-25/38',
));
$response->expects($this->once())->method('_clearBuffer');
$response->expects($this->any())
->method('_isActive')
->will($this->returnValue(true));
$response->file(
CAKE . 'Test' . DS . 'test_app' . DS . 'Vendor' . DS . 'css' . DS . 'test_asset.css',
array('download' => true)
);
ob_start();
$result = $response->send();
$output = ob_get_clean();
$this->assertEquals(206, $response->statusCode());
$this->assertEquals("is the test asset", $output);
$this->assertTrue($result !== false);
}
/**
* Test invalid file ranges.
*
* @return void
*/
public function testFileRangeInvalid() {
$_SERVER['HTTP_RANGE'] = 'bytes=30-2';
$response = $this->getMock('CakeResponse', array(
'header',
'type',
'_sendHeader',
'_setContentType',
'_isActive',
'_clearBuffer',
'_flushBuffer'
));
$response->expects($this->at(1))
->method('header')
->with('Content-Disposition', 'attachment; filename="test_asset.css"');
$response->expects($this->at(2))
->method('header')
->with('Accept-Ranges', 'bytes');
$response->expects($this->at(3))
->method('header')
->with(array(
'Content-Range' => 'bytes 0-37/38',
));
$response->file(
CAKE . 'Test' . DS . 'test_app' . DS . 'Vendor' . DS . 'css' . DS . 'test_asset.css',
array('download' => true)
);
$this->assertEquals(416, $response->statusCode());
$result = $response->send();
}
} }

View file

@ -39,7 +39,6 @@ if (!class_exists('AppController', false)) {
* helpers property * helpers property
* *
* @var array * @var array
* @access public
*/ */
public $helpers = array('Html'); public $helpers = array('Html');
@ -47,7 +46,6 @@ if (!class_exists('AppController', false)) {
* uses property * uses property
* *
* @var array * @var array
* @access public
*/ */
public $uses = array('ControllerPost'); public $uses = array('ControllerPost');
@ -55,7 +53,6 @@ if (!class_exists('AppController', false)) {
* components property * components property
* *
* @var array * @var array
* @access public
*/ */
public $components = array('Cookie'); public $components = array('Cookie');

View file

@ -109,6 +109,14 @@ class InflectorTest extends CakeTestCase {
$this->assertEquals(Inflector::singularize('foes'), 'foe'); $this->assertEquals(Inflector::singularize('foes'), 'foe');
$this->assertEquals(Inflector::singularize('databases'), 'database'); $this->assertEquals(Inflector::singularize('databases'), 'database');
$this->assertEquals(Inflector::singularize('cookies'), 'cookie'); $this->assertEquals(Inflector::singularize('cookies'), 'cookie');
$this->assertEquals(Inflector::singularize('thieves'), 'thief');
$this->assertEquals(Inflector::singularize('potatoes'), 'potato');
$this->assertEquals(Inflector::singularize('heroes'), 'hero');
$this->assertEquals(Inflector::singularize('buffalos'), 'buffalo');
$this->assertEquals(Inflector::singularize('babies'), 'baby');
$this->assertEquals(Inflector::singularize('teeth'), 'tooth');
$this->assertEquals(Inflector::singularize('geese'), 'goose');
$this->assertEquals(Inflector::singularize('feet'), 'foot');
$this->assertEquals(Inflector::singularize(''), ''); $this->assertEquals(Inflector::singularize(''), '');
} }
@ -161,6 +169,14 @@ class InflectorTest extends CakeTestCase {
$this->assertEquals(Inflector::pluralize('roof'), 'roofs'); $this->assertEquals(Inflector::pluralize('roof'), 'roofs');
$this->assertEquals(Inflector::pluralize('foe'), 'foes'); $this->assertEquals(Inflector::pluralize('foe'), 'foes');
$this->assertEquals(Inflector::pluralize('cookie'), 'cookies'); $this->assertEquals(Inflector::pluralize('cookie'), 'cookies');
$this->assertEquals(Inflector::pluralize('wolf'), 'wolves');
$this->assertEquals(Inflector::pluralize('thief'), 'thieves');
$this->assertEquals(Inflector::pluralize('potato'), 'potatoes');
$this->assertEquals(Inflector::pluralize('hero'), 'heroes');
$this->assertEquals(Inflector::pluralize('buffalo'), 'buffalo');
$this->assertEquals(Inflector::pluralize('tooth'), 'teeth');
$this->assertEquals(Inflector::pluralize('goose'), 'geese');
$this->assertEquals(Inflector::pluralize('foot'), 'feet');
$this->assertEquals(Inflector::pluralize(''), ''); $this->assertEquals(Inflector::pluralize(''), '');
} }

View file

@ -779,7 +779,6 @@ class FormHelperTest extends CakeTestCase {
/** /**
* Tests correct generation of number fields for integer fields * Tests correct generation of number fields for integer fields
* *
* @access public
* @return void * @return void
*/ */
public function testTextFieldTypeNumberGenerationForIntegers() { public function testTextFieldTypeNumberGenerationForIntegers() {
@ -1525,7 +1524,6 @@ class FormHelperTest extends CakeTestCase {
/** /**
* Test validation errors, when validation message is an empty string. * Test validation errors, when validation message is an empty string.
* *
* @access public
* @return void * @return void
*/ */
public function testEmptyErrorValidation() { public function testEmptyErrorValidation() {
@ -1566,7 +1564,6 @@ class FormHelperTest extends CakeTestCase {
/** /**
* Test validation errors, when calling input() overriding validation message by an empty string. * Test validation errors, when calling input() overriding validation message by an empty string.
* *
* @access public
* @return void * @return void
*/ */
public function testEmptyInputErrorValidation() { public function testEmptyInputErrorValidation() {

View file

@ -25,13 +25,6 @@
*/ */
class AccountFixture extends CakeTestFixture { class AccountFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Aco'
*/
public $name = 'Account';
public $table = 'Accounts'; public $table = 'Accounts';
/** /**

View file

@ -25,13 +25,6 @@
*/ */
class AcoActionFixture extends CakeTestFixture { class AcoActionFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'AcoAction'
*/
public $name = 'AcoAction';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class AcoFixture extends CakeTestFixture { class AcoFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Aco'
*/
public $name = 'Aco';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class AcoTwoFixture extends CakeTestFixture { class AcoTwoFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'AcoTwo'
*/
public $name = 'AcoTwo';
/** /**
* fields property * fields property
* *

View file

@ -26,13 +26,6 @@
*/ */
class AdFixture extends CakeTestFixture { class AdFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Ad'
*/
public $name = 'Ad';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class AdvertisementFixture extends CakeTestFixture { class AdvertisementFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Advertisement'
*/
public $name = 'Advertisement';
/** /**
* fields property * fields property
* *

View file

@ -26,13 +26,6 @@
*/ */
class AfterTreeFixture extends CakeTestFixture { class AfterTreeFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'AfterTree'
*/
public $name = 'AfterTree';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class AnotherArticleFixture extends CakeTestFixture { class AnotherArticleFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'AnotherArticle'
*/
public $name = 'AnotherArticle';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class AppleFixture extends CakeTestFixture { class AppleFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Apple'
*/
public $name = 'Apple';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class ArmorFixture extends CakeTestFixture { class ArmorFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Armor'
*/
public $name = 'Armor';
/** /**
* Datasource * Datasource
* *

View file

@ -25,13 +25,6 @@
*/ */
class ArmorsPlayerFixture extends CakeTestFixture { class ArmorsPlayerFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'ArmorsPlayer'
*/
public $name = 'ArmorsPlayer';
/** /**
* Datasource * Datasource
* *

View file

@ -25,13 +25,6 @@
*/ */
class AroFixture extends CakeTestFixture { class AroFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Aro'
*/
public $name = 'Aro';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class AroTwoFixture extends CakeTestFixture { class AroTwoFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'AroTwo'
*/
public $name = 'AroTwo';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class ArosAcoFixture extends CakeTestFixture { class ArosAcoFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'ArosAco'
*/
public $name = 'ArosAco';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class ArosAcoTwoFixture extends CakeTestFixture { class ArosAcoTwoFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'ArosAcoTwo'
*/
public $name = 'ArosAcoTwo';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class ArticleFeaturedFixture extends CakeTestFixture { class ArticleFeaturedFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'ArticleFeatured'
*/
public $name = 'ArticleFeatured';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class ArticleFeaturedsTagsFixture extends CakeTestFixture { class ArticleFeaturedsTagsFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'ArticleFeaturedsTags'
*/
public $name = 'ArticleFeaturedsTags';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class ArticleFixture extends CakeTestFixture { class ArticleFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Article'
*/
public $name = 'Article';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class ArticlesTagFixture extends CakeTestFixture { class ArticlesTagFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'ArticlesTag'
*/
public $name = 'ArticlesTag';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class AttachmentFixture extends CakeTestFixture { class AttachmentFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Attachment'
*/
public $name = 'Attachment';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class AuthUserCustomFieldFixture extends CakeTestFixture { class AuthUserCustomFieldFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'AuthUser'
*/
public $name = 'AuthUserCustomField';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class AuthUserFixture extends CakeTestFixture { class AuthUserFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'AuthUser'
*/
public $name = 'AuthUser';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class AuthorFixture extends CakeTestFixture { class AuthorFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Author'
*/
public $name = 'Author';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class BakeArticleFixture extends CakeTestFixture { class BakeArticleFixture extends CakeTestFixture {
/**
* name property
*
* @var string
*/
public $name = 'BakeArticle';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class BakeArticlesBakeTagFixture extends CakeTestFixture { class BakeArticlesBakeTagFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'ArticlesTag'
*/
public $name = 'BakeArticlesBakeTag';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class BakeCommentFixture extends CakeTestFixture { class BakeCommentFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Comment'
*/
public $name = 'BakeComment';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class BakeTagFixture extends CakeTestFixture { class BakeTagFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Tag'
*/
public $name = 'BakeTag';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class BasketFixture extends CakeTestFixture { class BasketFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Basket'
*/
public $name = 'Basket';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class BidFixture extends CakeTestFixture { class BidFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Bid'
*/
public $name = 'Bid';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class BiddingFixture extends CakeTestFixture { class BiddingFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Bidding'
*/
public $name = 'Bidding';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class BiddingMessageFixture extends CakeTestFixture { class BiddingMessageFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'BiddingMessage'
*/
public $name = 'BiddingMessage';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class BinaryTestFixture extends CakeTestFixture { class BinaryTestFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'BinaryTest'
*/
public $name = 'BinaryTest';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class BookFixture extends CakeTestFixture { class BookFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Book'
*/
public $name = 'Book';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class CacheTestModelFixture extends CakeTestFixture { class CacheTestModelFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'CacheTestModel'
*/
public $name = 'CacheTestModel';
/** /**
* fields property * fields property
* *

View file

@ -21,13 +21,6 @@
*/ */
class CakeSessionFixture extends CakeTestFixture { class CakeSessionFixture extends CakeTestFixture {
/**
* name property
*
* @var string
*/
public $name = 'CakeSession';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class CallbackFixture extends CakeTestFixture { class CallbackFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Callback'
*/
public $name = 'Callback';
/** /**
* fields property * fields property
* *

View file

@ -26,13 +26,6 @@
*/ */
class CampaignFixture extends CakeTestFixture { class CampaignFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Campaign'
*/
public $name = 'Campaign';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class CategoryFixture extends CakeTestFixture { class CategoryFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Category'
*/
public $name = 'Category';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class CategoryThreadFixture extends CakeTestFixture { class CategoryThreadFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'CategoryThread'
*/
public $name = 'CategoryThread';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class CdFixture extends CakeTestFixture { class CdFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Cd'
*/
public $name = 'Cd';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class CommentFixture extends CakeTestFixture { class CommentFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Comment'
*/
public $name = 'Comment';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class ContentAccountFixture extends CakeTestFixture { class ContentAccountFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Aco'
*/
public $name = 'ContentAccount';
public $table = 'ContentAccounts'; public $table = 'ContentAccounts';
/** /**

View file

@ -25,13 +25,6 @@
*/ */
class ContentFixture extends CakeTestFixture { class ContentFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Aco'
*/
public $name = 'Content';
public $table = 'Content'; public $table = 'Content';
/** /**

View file

@ -25,8 +25,6 @@
*/ */
class CounterCachePostFixture extends CakeTestFixture { class CounterCachePostFixture extends CakeTestFixture {
public $name = 'CounterCachePost';
public $fields = array( public $fields = array(
'id' => array('type' => 'integer', 'key' => 'primary'), 'id' => array('type' => 'integer', 'key' => 'primary'),
'title' => array('type' => 'string', 'length' => 255), 'title' => array('type' => 'string', 'length' => 255),

View file

@ -25,8 +25,6 @@
*/ */
class CounterCachePostNonstandardPrimaryKeyFixture extends CakeTestFixture { class CounterCachePostNonstandardPrimaryKeyFixture extends CakeTestFixture {
public $name = 'CounterCachePostNonstandardPrimaryKey';
public $fields = array( public $fields = array(
'pid' => array('type' => 'integer', 'key' => 'primary'), 'pid' => array('type' => 'integer', 'key' => 'primary'),
'title' => array('type' => 'string', 'length' => 255, 'null' => false), 'title' => array('type' => 'string', 'length' => 255, 'null' => false),

View file

@ -25,8 +25,6 @@
*/ */
class CounterCacheUserFixture extends CakeTestFixture { class CounterCacheUserFixture extends CakeTestFixture {
public $name = 'CounterCacheUser';
public $fields = array( public $fields = array(
'id' => array('type' => 'integer', 'key' => 'primary'), 'id' => array('type' => 'integer', 'key' => 'primary'),
'name' => array('type' => 'string', 'length' => 255, 'null' => false), 'name' => array('type' => 'string', 'length' => 255, 'null' => false),

View file

@ -25,8 +25,6 @@
*/ */
class CounterCacheUserNonstandardPrimaryKeyFixture extends CakeTestFixture { class CounterCacheUserNonstandardPrimaryKeyFixture extends CakeTestFixture {
public $name = 'CounterCacheUserNonstandardPrimaryKey';
public $fields = array( public $fields = array(
'uid' => array('type' => 'integer', 'key' => 'primary'), 'uid' => array('type' => 'integer', 'key' => 'primary'),
'name' => array('type' => 'string', 'length' => 255, 'null' => false), 'name' => array('type' => 'string', 'length' => 255, 'null' => false),

View file

@ -25,13 +25,6 @@
*/ */
class DataTestFixture extends CakeTestFixture { class DataTestFixture extends CakeTestFixture {
/**
* Name property
*
* @var string 'DataTest'
*/
public $name = 'DataTest';
/** /**
* Fields property * Fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class DatatypeFixture extends CakeTestFixture { class DatatypeFixture extends CakeTestFixture {
/**
* Name property
*
* @var string 'Datatype'
*/
public $name = 'Datatype';
/** /**
* Fields property * Fields property
* *

View file

@ -26,13 +26,6 @@
*/ */
class DependencyFixture extends CakeTestFixture { class DependencyFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Dependency'
*/
public $name = 'Dependency';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class DeviceFixture extends CakeTestFixture { class DeviceFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Device'
*/
public $name = 'Device';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class DeviceTypeCategoryFixture extends CakeTestFixture { class DeviceTypeCategoryFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'DeviceTypeCategory'
*/
public $name = 'DeviceTypeCategory';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class DeviceTypeFixture extends CakeTestFixture { class DeviceTypeFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'DeviceType'
*/
public $name = 'DeviceType';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class DocumentDirectoryFixture extends CakeTestFixture { class DocumentDirectoryFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'DocumentDirectory'
*/
public $name = 'DocumentDirectory';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class DocumentFixture extends CakeTestFixture { class DocumentFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Document'
*/
public $name = 'Document';
/** /**
* fields property * fields property
* *

View file

@ -24,19 +24,10 @@
*/ */
class DomainFixture extends CakeTestFixture { class DomainFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Domain'
* @access public
*/
public $name = 'Domain';
/** /**
* fields property * fields property
* *
* @var array * @var array
* @access public
*/ */
public $fields = array( public $fields = array(
'id' => array('type' => 'integer', 'key' => 'primary'), 'id' => array('type' => 'integer', 'key' => 'primary'),
@ -49,7 +40,6 @@ class DomainFixture extends CakeTestFixture {
* records property * records property
* *
* @var array * @var array
* @access public
*/ */
public $records = array( public $records = array(
array('domain' => 'cakephp.org', 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'), array('domain' => 'cakephp.org', 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'),

View file

@ -24,19 +24,10 @@
*/ */
class DomainsSiteFixture extends CakeTestFixture { class DomainsSiteFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Domain'
* @access public
*/
public $name = 'DomainsSite';
/** /**
* fields property * fields property
* *
* @var array * @var array
* @access public
*/ */
public $fields = array( public $fields = array(
'id' => array('type' => 'integer', 'key' => 'primary'), 'id' => array('type' => 'integer', 'key' => 'primary'),
@ -51,7 +42,6 @@ class DomainsSiteFixture extends CakeTestFixture {
* records property * records property
* *
* @var array * @var array
* @access public
*/ */
public $records = array( public $records = array(
array('site_id' => 1, 'domain_id' => 1, 'active' => true, 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'), array('site_id' => 1, 'domain_id' => 1, 'active' => true, 'created' => '2007-03-17 01:16:23', 'updated' => '2007-03-17 01:18:31'),

View file

@ -25,13 +25,6 @@
*/ */
class ExteriorTypeCategoryFixture extends CakeTestFixture { class ExteriorTypeCategoryFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'ExteriorTypeCategory'
*/
public $name = 'ExteriorTypeCategory';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class FeatureSetFixture extends CakeTestFixture { class FeatureSetFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'FeatureSet'
*/
public $name = 'FeatureSet';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class FeaturedFixture extends CakeTestFixture { class FeaturedFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Featured'
*/
public $name = 'Featured';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class FilmFileFixture extends CakeTestFixture { class FilmFileFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'FilmFile'
*/
public $name = 'FilmFile';
/** /**
* fields property * fields property
* *

View file

@ -29,13 +29,6 @@
*/ */
class FlagTreeFixture extends CakeTestFixture { class FlagTreeFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'FlagTree'
*/
public $name = 'FlagTree';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class FruitFixture extends CakeTestFixture { class FruitFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Fruit'
*/
public $name = 'Fruit';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class FruitsUuidTagFixture extends CakeTestFixture { class FruitsUuidTagFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'FruitsUuidTag'
*/
public $name = 'FruitsUuidTag';
/** /**
* fields property * fields property
* *

View file

@ -25,8 +25,6 @@
*/ */
class GroupUpdateAllFixture extends CakeTestFixture { class GroupUpdateAllFixture extends CakeTestFixture {
public $name = 'GroupUpdateAll';
public $table = 'group_update_all'; public $table = 'group_update_all';
public $fields = array( public $fields = array(

View file

@ -25,13 +25,6 @@
*/ */
class GuildFixture extends CakeTestFixture { class GuildFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Guild'
*/
public $name = 'Guild';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class GuildsPlayerFixture extends CakeTestFixture { class GuildsPlayerFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'GuildsPlayer'
*/
public $name = 'GuildsPlayer';
public $useDbConfig = 'test2'; public $useDbConfig = 'test2';
/** /**

View file

@ -25,13 +25,6 @@
*/ */
class HomeFixture extends CakeTestFixture { class HomeFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Home'
*/
public $name = 'Home';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class ImageFixture extends CakeTestFixture { class ImageFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Image'
*/
public $name = 'Image';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class InnoFixture extends CakeTestFixture { class InnoFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Article'
*/
public $name = 'Inno';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class ItemFixture extends CakeTestFixture { class ItemFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Item'
*/
public $name = 'Item';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class ItemsPortfolioFixture extends CakeTestFixture { class ItemsPortfolioFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'ItemsPortfolio'
*/
public $name = 'ItemsPortfolio';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class JoinAFixture extends CakeTestFixture { class JoinAFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'JoinA'
*/
public $name = 'JoinA';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class JoinBFixture extends CakeTestFixture { class JoinBFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'JoinB'
*/
public $name = 'JoinB';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class JoinCFixture extends CakeTestFixture { class JoinCFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'JoinC'
*/
public $name = 'JoinC';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class JoinThingFixture extends CakeTestFixture { class JoinThingFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'JoinThing'
*/
public $name = 'JoinThing';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class MessageFixture extends CakeTestFixture { class MessageFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'Message'
*/
public $name = 'Message';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class MyCategoriesMyProductsFixture extends CakeTestFixture { class MyCategoriesMyProductsFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'MyCategoriesMyProducts'
*/
public $name = 'MyCategoriesMyProducts';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class MyCategoriesMyUsersFixture extends CakeTestFixture { class MyCategoriesMyUsersFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'MyCategoriesMyUsers'
*/
public $name = 'MyCategoriesMyUsers';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class MyCategoryFixture extends CakeTestFixture { class MyCategoryFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'MyCategory'
*/
public $name = 'MyCategory';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class MyProductFixture extends CakeTestFixture { class MyProductFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'MyProduct'
*/
public $name = 'MyProduct';
/** /**
* fields property * fields property
* *

View file

@ -25,13 +25,6 @@
*/ */
class MyUserFixture extends CakeTestFixture { class MyUserFixture extends CakeTestFixture {
/**
* name property
*
* @var string 'MyUser'
*/
public $name = 'MyUser';
/** /**
* fields property * fields property
* *

Some files were not shown because too many files have changed in this diff Show more