Skip to content
Permalink
Browse files

Some more fixes to make tests run better under all tests.

  • Loading branch information...
markstory committed Sep 19, 2010
1 parent 76ef390 commit 2385747899684c07832336aa43e9f731241d6221
@@ -562,6 +562,7 @@ public function setUp() {
$this->_debug = Configure::read('debug');
App::build(App::core());
App::objects('plugin', null, false);
}
/**
@@ -445,12 +445,21 @@ class ControllerTest extends CakeTestCase {
public $fixtures = array('core.post', 'core.comment', 'core.name');
/**
* endTest
* reset environment.
*
* @return void
*/
function setUp() {
App::objects('plugin', null, false);
}
/**
* teardown
*
* @access public
* @return void
*/
function endTest() {
function teardown() {
App::build();
}
@@ -960,6 +969,7 @@ function testRender() {
$this->assertPattern('/this is the test element/', $result);
$Controller = new TestController($request);
$Controller->helpers = array('Html');
$Controller->constructClasses();
$Controller->ControllerComment->validationErrors = array('title' => 'tooShort');
$expected = $Controller->ControllerComment->validationErrors;
@@ -4532,8 +4532,7 @@ function testUsingMbStrripos() {
$string = 'državni';
$find = '';
$result = mb_strripos($string, $find);
$expected = 0;
$this->assertEqual($result, $expected);
$this->assertFalse($result);
}
/**
@@ -38,8 +38,6 @@
</div>
<div id="content">

<?php $this->Session->flash();?>

<?php echo $content_for_layout;?>

</div>

0 comments on commit 2385747

Please sign in to comment.
You can’t perform that action at this time.