Permalink
Browse files

correct order of params

  • Loading branch information...
1 parent 9844da8 commit 0b45a2eca8108601549910a4d604338b2888ff2e @dereuromark dereuromark committed Sep 25, 2013
View
6 lib/Cake/Test/Case/View/Helper/FormHelperTest.php
@@ -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);
}
/**
View
6 lib/Cake/Test/Case/View/Helper/HtmlHelperTest.php
@@ -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);
}
/**

0 comments on commit 0b45a2e

Please sign in to comment.