Permalink
Browse files

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.
  • Loading branch information...
1 parent 8cae1e8 commit 34fed29d05461c1ceae23fab1cec9c6a9c49fe05 @markstory markstory committed Jan 17, 2010
@@ -22,12 +22,12 @@
}
/**
- * 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 @@ function testCustomSingularRule() {
$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 @@ function testMapReverse() {
'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'),
@@ -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');

0 comments on commit 34fed29

Please sign in to comment.