Skip to content
Permalink
Browse files

Fix missing doc blocks. Allow IDE autocomplete/discov.

  • Loading branch information...
dereuromark committed Nov 10, 2018
1 parent c2df1fb commit d252e0b4460f8410f5549c362e4150131e83dcdb
Showing with 15 additions and 3 deletions.
  1. +15 −3 tests/TestCase/Datasource/PaginatorTest.php
@@ -24,7 +24,6 @@
class PaginatorTest extends TestCase
{
/**
* fixtures property
*
@@ -42,6 +41,11 @@ class PaginatorTest extends TestCase
*/
public $autoFixtures = false;
/**
* @var \Cake\Datasource\Paginator
*/
public $Paginator;
/**
* setup
*
@@ -915,6 +919,9 @@ public function testValidateSortWhitelistMultiple()
$this->assertEquals($expected, $result['order']);
}
/**
* @return \Cake\Datasource\RepositoryInterface|\PHPUnit\Framework\MockObject\MockObject
*/
protected function getMockRepository()
{
$model = $this->getMockBuilder('Cake\Datasource\RepositoryInterface')
@@ -927,6 +934,9 @@ protected function getMockRepository()
return $model;
}
/**
* @return \Cake\Datasource\RepositoryInterface|\PHPUnit\Framework\MockObject\MockObject
*/
protected function mockAliasHasFieldModel()
{
$model = $this->getMockRepository();
@@ -1372,7 +1382,7 @@ public function testPaginateQueryWithLimit()
* Helper method for making mocks.
*
* @param array $methods
* @return \Cake\ORM\Table
* @return \Cake\ORM\Table|\PHPUnit\Framework\MockObject\MockObject
*/
protected function _getMockPosts($methods = [])
{
@@ -1396,10 +1406,12 @@ protected function _getMockPosts($methods = [])
/**
* Helper method for mocking queries.
*
* @return \Cake\ORM\Query
* @param string|null $table
* @return \Cake\ORM\Query|\PHPUnit\Framework\MockObject\MockObject
*/
protected function _getMockFindQuery($table = null)
{
/** @var \Cake\ORM\Query|\PHPUnit\Framework\MockObject\MockObject $query */
$query = $this->getMockBuilder('Cake\ORM\Query')
->setMethods(['total', 'all', 'count', 'applyOptions'])
->disableOriginalConstructor()

0 comments on commit d252e0b

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