Skip to content

Commit

Permalink
assertEqual to assertEquals in core test files
Browse files Browse the repository at this point in the history
Signed-off-by: mark_story <mark@mark-story.com>
  • Loading branch information
m authored and markstory committed Nov 19, 2011
1 parent 59e28fc commit 2957a33
Show file tree
Hide file tree
Showing 5 changed files with 280 additions and 280 deletions.
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/BasicsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ public function testDebug() {
</div>
EXPECTED;
$expected = sprintf($expected, substr(__FILE__, strlen(ROOT) + 1), __LINE__ - 10);
$this->assertEqual($expected, $result);
$this->assertEquals($expected, $result);

ob_start();
debug('<div>this-is-a-test</div>', true, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -553,11 +553,11 @@ public function testPaginateOrderVirtualFieldJoinedModel() {
'paramType' => 'named'
);
$result = $Controller->Paginator->paginate('PaginatorControllerPost');
$this->assertEqual(Set::extract($result, '{n}.PaginatorAuthor.joined_offset'), array(4, 2, 2));
$this->assertEquals(Set::extract($result, '{n}.PaginatorAuthor.joined_offset'), array(4, 2, 2));

$Controller->request->params['named'] = array('sort' => 'PaginatorAuthor.joined_offset', 'direction' => 'asc');
$result = $Controller->Paginator->paginate('PaginatorControllerPost');
$this->assertEqual(Set::extract($result, '{n}.PaginatorAuthor.joined_offset'), array(2, 2, 4));
$this->assertEquals(Set::extract($result, '{n}.PaginatorAuthor.joined_offset'), array(2, 2, 4));
}

/**
Expand Down
Loading

0 comments on commit 2957a33

Please sign in to comment.