mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Renaming dummy controller, commenting out test for deprecated function
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4594 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
272efd4c07
commit
06eea06980
1 changed files with 5 additions and 4 deletions
|
@ -33,25 +33,26 @@
|
|||
require_once LIBS.DS.'view'.DS.'helpers'.DS.'html.php';
|
||||
require_once LIBS.DS.'controller'.DS.'controller.php';
|
||||
|
||||
class TheTestController extends Controller {
|
||||
class TheHtmlTestController extends Controller {
|
||||
var $name = 'TheTest';
|
||||
var $uses = null;
|
||||
}
|
||||
}
|
||||
|
||||
class HtmlHelperTest extends UnitTestCase {
|
||||
var $html = null;
|
||||
|
||||
function setUp() {
|
||||
$this->html = new HtmlHelper();
|
||||
$view = new View(new TheTestController());
|
||||
$view = new View(new TheHtmlTestController());
|
||||
ClassRegistry::addObject('view', $view);
|
||||
}
|
||||
|
||||
/* commented out because selectTag is deprecated
|
||||
function testSelectTag() {
|
||||
$result = $this->html->selectTag('Model/field', array());
|
||||
$expected = '<select name="data[Model][field]" id="ModelField">'."\n".'<option value="" > </option>'."\n".'</select>';
|
||||
$this->assertEqual($result, $expected, "Badness! Expected '{$expected}', got '{$result}'.");
|
||||
}
|
||||
}*/
|
||||
|
||||
function tearDown() {
|
||||
unset($this->html);
|
||||
|
|
Loading…
Add table
Reference in a new issue