Skip to content

Commit

Permalink
Calling parent methods from overridden methods. Deleting commented ga…
Browse files Browse the repository at this point in the history
…rbage test.
  • Loading branch information
markstory committed Jun 22, 2010
1 parent 22baf7f commit 069c270
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions cake/tests/cases/libs/validation.test.php
Expand Up @@ -100,6 +100,7 @@ class ValidationTest extends CakeTestCase {
* @return void
*/
function setUp() {
parent::setup();
$this->_appEncoding = Configure::read('App.encoding');
}

Expand All @@ -110,6 +111,7 @@ function setUp() {
* @return void
*/
function tearDown() {
parent::tearDown();
Configure::write('App.encoding', $this->_appEncoding);
}

Expand Down Expand Up @@ -2121,11 +2123,4 @@ function testUserDefined() {
$this->assertTrue(Validation::userDefined('333', $validator, 'customValidate'));
}

// function testFile() {
// $this->assertTrue(Validation::file(WWW_ROOT . 'img' . DS . 'cake.icon.gif'));
// $this->assertTrue(Validation::file(WWW_ROOT. 'favicon.ico'));
// $this->assertTrue(Validation::file(WWW_ROOT. 'index.php'));
// $this->assertTrue(Validation::file(WWW_ROOT. 'css' . DS . 'cake.generic.css'));
// $this->assertTrue(Validation::file(TEST_CAKE_CORE_INCLUDE_PATH. 'VERSION.txt'));
// }
}

0 comments on commit 069c270

Please sign in to comment.