Skip to content

Commit

Permalink
Removing getTests() and fixing failing test in accidentaly skipped te…
Browse files Browse the repository at this point in the history
…sts.
  • Loading branch information
markstory committed Aug 28, 2011
1 parent fdc006a commit 27ab909
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cake/tests/cases/libs/controller/scaffold.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ function testEditScaffold() {
new Scaffold($this->Controller, $params);
$result = ob_get_clean();

$this->assertPattern('/<form id="ScaffoldMockEditForm" method="post" action="\/scaffold_mock\/edit\/1"/', $result);
$this->assertPattern('/<form action="\/scaffold_mock\/edit\/1" id="ScaffoldMockEditForm" method="post"/', $result);
$this->assertPattern('/<legend>Edit Scaffold Mock<\/legend>/', $result);

$this->assertPattern('/input type="hidden" name="data\[ScaffoldMock\]\[id\]" value="1" id="ScaffoldMockId"/', $result);
Expand Down Expand Up @@ -770,9 +770,6 @@ function testScaffoldVariableSetting() {
$this->assertEqual($result['pluralVar'], 'scaffoldMock');
$this->assertEqual($result['scaffoldFields'], array('id', 'user_id', 'title', 'body', 'published', 'created', 'updated'));
}
function getTests() {
return array('start', 'startCase', 'testScaffoldChangingViewProperty', 'endCase', 'end');
}

/**
* test that Scaffold overrides the view property even if its set to 'Theme'
Expand Down

0 comments on commit 27ab909

Please sign in to comment.