Skip to content

Commit

Permalink
correct order of params
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Sep 25, 2013
1 parent 9844da8 commit 0b45a2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Test/Case/View/Helper/FormHelperTest.php
Expand Up @@ -6754,23 +6754,23 @@ public function testYearAutoExpandRange() {

$result = $matches[1];
$expected = range(date('Y') + 20, 1930);
$this->assertEquals($result, $expected);
$this->assertEquals($expected, $result);

$this->Form->request->data['Project']['release'] = '2050-10-10';
$result = $this->Form->year('Project.release');
preg_match_all('/<option value="([\d]+)"/', $result, $matches);

$result = $matches[1];
$expected = range(2050, date('Y') - 20);
$this->assertEquals($result, $expected);
$this->assertEquals($expected, $result);

$this->Form->request->data['Project']['release'] = '1881-10-10';
$result = $this->Form->year('Project.release', 1890, 1900);
preg_match_all('/<option value="([\d]+)"/', $result, $matches);

$result = $matches[1];
$expected = range(1900, 1881);
$this->assertEquals($result, $expected);
$this->assertEquals($expected, $result);
}

/**
Expand Down
6 changes: 3 additions & 3 deletions lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
Expand Up @@ -1844,13 +1844,13 @@ public function testTag() {
$this->assertTags($result, array('div' => array('class' => 'class-name'), '&lt;text&gt;', '/div'));

$result = $this->Html->tag(false, '<em>stuff</em>');
$this->assertEquals($result, '<em>stuff</em>');
$this->assertEquals('<em>stuff</em>', $result);

$result = $this->Html->tag(null, '<em>stuff</em>');
$this->assertEquals($result, '<em>stuff</em>');
$this->assertEquals('<em>stuff</em>', $result);

$result = $this->Html->tag('', '<em>stuff</em>');
$this->assertEquals($result, '<em>stuff</em>');
$this->assertEquals('<em>stuff</em>', $result);
}

/**
Expand Down

0 comments on commit 0b45a2e

Please sign in to comment.