Skip to content
Permalink
Browse files

Remove tests for methods that no longer exist.

domIdSuffix has been moved to Cake\View\Widget\IdGeneratorTrait. These
tests are now defunct.
  • Loading branch information...
markstory committed Feb 25, 2014
1 parent 85ccc83 commit 2a8cdd31ba7f386e00136c037cea75e27b5ec9da
Showing with 0 additions and 46 deletions.
  1. +0 −46 tests/TestCase/View/Helper/FormHelperTest.php
@@ -4147,52 +4147,6 @@ public function testRadioHiddenInputDisabling() {
$this->assertTags($result, $expected);
}
/**
* testDomIdSuffix method
*
* @return void
*/
public function testDomIdSuffix() {
$this->markTestIncomplete('Need to revisit once models work again.');
$result = $this->Form->domIdSuffix('1 string with 1$-dollar signs');
$this->assertEquals('1StringWith1$-dollarSigns', $result);
$result = $this->Form->domIdSuffix('<abc x="foo" y=\'bar\'>');
$this->assertEquals('AbcX=FooY=Bar', $result);
$result = $this->Form->domIdSuffix('1 string with 1$-dollar signs', 'xhtml');
$this->assertEquals('1StringWith1-dollarSigns', $result);
$result = $this->Form->domIdSuffix('<abc x="foo" y=\'bar\'>', 'xhtml');
$this->assertEquals('AbcXFooYBar', $result);
}
/**
* testDomIdSuffixCollisionResolvement()
*
* @return void
*/
public function testDomIdSuffixCollisionResolvement() {
$this->markTestIncomplete('Need to revisit once models work again.');
$result = $this->Form->domIdSuffix('a>b');
$this->assertEquals('AB', $result);
$result = $this->Form->domIdSuffix('a<b');
$this->assertEquals('AB1', $result);
$result = $this->Form->domIdSuffix('a\'b');
$this->assertEquals('AB2', $result);
$result = $this->Form->domIdSuffix('1 string with 1$-dollar', 'xhtml');
$this->assertEquals('1StringWith1-dollar', $result);
$result = $this->Form->domIdSuffix('1 string with 1€-dollar', 'xhtml');
$this->assertEquals('1StringWith1-dollar1', $result);
$result = $this->Form->domIdSuffix('1 string with 1$-dollar', 'xhtml');
$this->assertEquals('1StringWith1-dollar2', $result);
}
/**
* testSelect method
*

0 comments on commit 2a8cdd3

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