Skip to content

Commit

Permalink
Some more fixes to make tests run better under all tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 25, 2010
1 parent 76ef390 commit 2385747
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
1 change: 1 addition & 0 deletions cake/tests/cases/dispatcher.test.php
Expand Up @@ -562,6 +562,7 @@ public function setUp() {
$this->_debug = Configure::read('debug');

App::build(App::core());
App::objects('plugin', null, false);
}

/**
Expand Down
14 changes: 12 additions & 2 deletions cake/tests/cases/libs/controller/controller.test.php
Expand Up @@ -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();
}

Expand Down Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions cake/tests/cases/libs/multibyte.test.php
Expand Up @@ -4532,8 +4532,7 @@ function testUsingMbStrripos() {
$string = 'državni';
$find = 'dž';
$result = mb_strripos($string, $find);
$expected = 0;
$this->assertEqual($result, $expected);
$this->assertFalse($result);
}

/**
Expand Down
2 changes: 0 additions & 2 deletions cake/tests/test_app/views/layouts/default.ctp
Expand Up @@ -38,8 +38,6 @@
</div>
<div id="content">

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

<?php echo $content_for_layout;?>

</div>
Expand Down

0 comments on commit 2385747

Please sign in to comment.