Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updating tests to reflect SessionHelper's loss of magic inclusion.

  • Loading branch information...
commit 1980a46b46289d568c4274ecf2ae414f37e7d7da 1 parent a56bc55
@markstory markstory authored
View
2  cake/tests/cases/libs/controller/controller.test.php
@@ -318,7 +318,7 @@ class TestController extends AppController {
* @var array
* @access public
*/
- var $helpers = array('Xml');
+ var $helpers = array('Session', 'Xml');
/**
* components property
View
3  cake/tests/cases/libs/controller/scaffold.test.php
@@ -495,11 +495,12 @@ function testEditScaffold() {
$this->assertPattern('/<legend>Edit Scaffold Mock<\/legend>/', $result);
$this->assertPattern('/input type="hidden" name="data\[ScaffoldMock\]\[id\]" value="1" id="ScaffoldMockId"/', $result);
- $this->assertPattern('/input name="data\[ScaffoldMock\]\[user_id\]" type="text" maxlength="11" value="1" id="ScaffoldMockUserId"/', $result);
+ $this->assertPattern('/select name="data\[ScaffoldMock\]\[user_id\]" id="ScaffoldMockUserId"/', $result);
$this->assertPattern('/input name="data\[ScaffoldMock\]\[title\]" type="text" maxlength="255" value="First Article" id="ScaffoldMockTitle"/', $result);
$this->assertPattern('/input name="data\[ScaffoldMock\]\[published\]" type="text" maxlength="1" value="Y" id="ScaffoldMockPublished"/', $result);
$this->assertPattern('/textarea name="data\[ScaffoldMock\]\[body\]" cols="30" rows="6" id="ScaffoldMockBody"/', $result);
$this->assertPattern('/<li><a href="\/scaffold_mock\/delete\/1"[^>]*>Delete<\/a>\s*<\/li>/', $result);
+ debug($result);
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.