mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Renaming session test case.
Adding missing doc block to inflector test case. Updating Set::map reverse test to reflect changes in Model. Removing Inflector from lib group as the reset test breaks many other tests. Adding a table property to the session fixture.
This commit is contained in:
parent
8cae1e850a
commit
34fed29d05
5 changed files with 16 additions and 4 deletions
|
@ -22,12 +22,12 @@ if (!class_exists('CakeSession')) {
|
|||
}
|
||||
|
||||
/**
|
||||
* SessionTest class
|
||||
* CakeSessionTest class
|
||||
*
|
||||
* @package cake
|
||||
* @subpackage cake.tests.cases.libs
|
||||
*/
|
||||
class SessionTest extends CakeTestCase {
|
||||
class CakeSessionTest extends CakeTestCase {
|
||||
|
||||
/**
|
||||
* Fixtures used in the SessionTest
|
||||
|
|
|
@ -381,6 +381,11 @@ class InflectorTest extends CakeTestCase {
|
|||
$this->assertEqual(Inflector::singularize('singulars'), 'singulars');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test resetting inflection rules.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function testCustomRuleWithReset() {
|
||||
$uninflected = array('atlas', 'lapis', 'onibus', 'pires', 'virus', '.*x');
|
||||
$pluralIrregular = array('as' => 'ases');
|
||||
|
|
|
@ -1824,7 +1824,7 @@ class SetTest extends CakeTestCase {
|
|||
'useDbConfig' => 'default', 'useTable' => false, 'displayField' => null, 'id' => false, 'data' => array(), 'table' => 'models', 'primaryKey' => 'id', '_schema' => null, 'validate' => array(),
|
||||
'validationErrors' => array(), 'tablePrefix' => null, 'name' => 'Model', 'alias' => 'Model', 'tableToModel' => array(), 'logTransactions' => false, 'transactional' => false, 'cacheQueries' => false,
|
||||
'belongsTo' => array(), 'hasOne' => array(), 'hasMany' => array(), 'hasAndBelongsToMany' => array(), 'actsAs' => null, 'whitelist' => array(), 'cacheSources' => true,
|
||||
'findQueryType' => null, 'recursive' => 1, 'order' => null, '__exists' => null,
|
||||
'findQueryType' => null, 'recursive' => 1, 'order' => null, 'virtualFields' => array(),
|
||||
'__associationKeys' => array(
|
||||
'belongsTo' => array('className', 'foreignKey', 'conditions', 'fields', 'order', 'counterCache'),
|
||||
'hasOne' => array('className', 'foreignKey', 'conditions', 'fields', 'order', 'dependent'),
|
||||
|
|
7
cake/tests/fixtures/session_fixture.php
vendored
7
cake/tests/fixtures/session_fixture.php
vendored
|
@ -34,6 +34,13 @@ class SessionFixture extends CakeTestFixture {
|
|||
*/
|
||||
var $name = 'Session';
|
||||
|
||||
/**
|
||||
* table property.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
// var $table = 'sessions';
|
||||
|
||||
/**
|
||||
* fields property
|
||||
*
|
||||
|
|
|
@ -44,7 +44,7 @@ class LibGroupTest extends TestSuite {
|
|||
*/
|
||||
function LibGroupTest() {
|
||||
TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'basics');
|
||||
TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'inflector');
|
||||
// TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'inflector');
|
||||
TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'cake_session');
|
||||
TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'debugger');
|
||||
TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'error');
|
||||
|
|
Loading…
Add table
Reference in a new issue