Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing up some tests. pretty much all greens for me.

  • Loading branch information...
commit 303bc0fc896722c7a9822fd234218756df69ddbb 1 parent 5f2ee8f
gwoo authored
View
2  cake/libs/cake_session.php
@@ -759,7 +759,7 @@ function __gc($expires = null) {
$expires = time();
}
- $return = $model->deleteAll(array("$alias.expires <" => $expires), false, false);
+ $return = $model->deleteAll(array($model->alias . ".expires <" => $expires), false, false);
return $return;
}
}
View
9 cake/tests/cases/dispatcher.test.php
@@ -533,15 +533,6 @@ function tearDown() {
Configure::write('debug', $this->_debug);
}
/**
- * tearDown method
- *
- * @access public
- * @return void
- */
- function tearDown() {
- $_GET = $this->_get;
- }
-/**
* testParseParamsWithoutZerosAndEmptyPost method
*
* @access public
View
9 cake/tests/cases/libs/cache/apc.test.php
@@ -69,15 +69,6 @@ function tearDown() {
Cache::config('default');
}
/**
- * tearDown method
- *
- * @access public
- * @return void
- */
- function tearDown() {
- Cache::config('default');
- }
-/**
* testReadAndWriteCache method
*
* @access public
View
9 cake/tests/cases/libs/cache/xcache.test.php
@@ -69,15 +69,6 @@ function tearDown() {
Cache::config('default');
}
/**
- * tearDown method
- *
- * @access public
- * @return void
- */
- function tearDown() {
- Cache::config('default');
- }
-/**
* testSettings method
*
* @access public
View
25 cake/tests/cases/libs/model/model.test.php
@@ -4823,31 +4823,6 @@ function testFindNeighbors() {
$this->assertEqual($result, $expected);
}
/**
- * test findNeighbours() method
- *
- * @return void
- * @access public
- */
- function testFindNeighboursLegacy() {
- $this->loadFixtures('User', 'Article');
- $TestModel =& new Article();
-
- $result = $TestModel->findNeighbours(null, 'Article.id', '2');
- $expected = array('prev' => array('Article' => array('id' => 1)), 'next' => array('Article' => array('id' => 3)));
- $this->assertEqual($result, $expected);
-
- $result = $TestModel->findNeighbours(null, 'Article.id', '3');
- $expected = array('prev' => array('Article' => array('id' => 2)), 'next' => array());
- $this->assertEqual($result, $expected);
-
- $result = $TestModel->findNeighbours(array('User.id' => 1), array('Article.id', 'Article.title'), 2);
- $expected = array(
- 'prev' => array('Article' => array('id' => 1, 'title' => 'First Article')),
- 'next' => array('Article' => array('id' => 3, 'title' => 'Third Article')),
- );
- $this->assertEqual($result, $expected);
- }
-/**
* testFindCombinedRelations method
*
* @access public
View
9 cake/tests/cases/libs/view/helpers/html.test.php
@@ -85,15 +85,6 @@ function tearDown() {
ClassRegistry::flush();
}
/**
- * tearDown method
- *
- * @access public
- * @return void
- */
- function tearDown() {
- unset($this->Html);
- }
-/**
* testDocType method
*
* @access public
Please sign in to comment.
Something went wrong with that request. Please try again.