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:
Mark Story 2010-01-16 19:19:12 -05:00
parent 8cae1e850a
commit 34fed29d05
5 changed files with 16 additions and 4 deletions

View file

@ -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

View file

@ -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');

View file

@ -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'),

View file

@ -34,6 +34,13 @@ class SessionFixture extends CakeTestFixture {
*/
var $name = 'Session';
/**
* table property.
*
* @var string
*/
// var $table = 'sessions';
/**
* fields property
*

View file

@ -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');