Permalink
Browse files

assertEqual to assertEquals in core test files

Signed-off-by: mark_story <mark@mark-story.com>
  • Loading branch information...
dereuromark authored and markstory committed Nov 18, 2011
1 parent 59e28fc commit 2957a33b238fec1acca60dbe60c9c5117423e906
@@ -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);
@@ -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));
}
/**
Oops, something went wrong.

0 comments on commit 2957a33

Please sign in to comment.