Skip to content
Permalink
Browse files

Fixed broken tests

  • Loading branch information...
lorenzo committed Sep 22, 2014
1 parent 732556f commit 0c2f4669ab040c85e3bf8651d70ecaf1fd5617ef
@@ -414,7 +414,7 @@ protected function _decorateResults($result) {
}
if ($this->bufferResults()) {
$result = $result->buffered();
$result = new $decorator($result->buffered());
}
return $result;
@@ -660,10 +660,10 @@ public function testPaginate() {
$this->assertArrayNotHasKey('Paginator', $Controller->helpers);
$results = $Controller->paginate('Posts');
$this->assertInstanceOf('Cake\ORM\ResultSet', $results);
$this->assertInstanceOf('Cake\Datasource\ResultSetDecorator', $results);
$results = $Controller->paginate(TableRegistry::get('Posts'));
$this->assertInstanceOf('Cake\ORM\ResultSet', $results);
$this->assertInstanceOf('Cake\Datasource\ResultSetDecorator', $results);
$this->assertSame($Controller->request->params['paging']['Posts']['page'], 1);
$this->assertSame($Controller->request->params['paging']['Posts']['pageCount'], 1);
@@ -686,7 +686,7 @@ public function testPaginateUsesModelClass() {
$Controller->modelClass = 'Posts';
$results = $Controller->paginate();
$this->assertInstanceOf('Cake\ORM\ResultSet', $results);
$this->assertInstanceOf('Cake\Datasource\ResultSetDecorator', $results);
}
/**
@@ -1537,7 +1537,7 @@ public function testCacheWriteIntegration() {
->method('write')
->with(
'my_key',
$this->isInstanceOf('Cake\ORM\ResultSet')
$this->isInstanceOf('Cake\Datasource\ResultSetDecorator')
);
$query->cache('my_key', $cacher)

0 comments on commit 0c2f466

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