Skip to content
Permalink
Browse files

Added construct test

  • Loading branch information...
ruudboon committed Aug 15, 2019
1 parent d0216f3 commit bc0ad5e3fb8152ff1e9b6fda9461bf72d8f1bc58
Showing with 16 additions and 1 deletion.
  1. +16 −1 tests/integration/Paginator/Adapter/QueryBuilder/ConstructCest.php
@@ -13,6 +13,7 @@
namespace Phalcon\Test\Integration\Paginator\Adapter\QueryBuilder;
use IntegrationTester;
use Phalcon\Paginator\Adapter\QueryBuilder;
/**
* Class ConstructCest
@@ -28,6 +29,20 @@ class ConstructCest
public function paginatorAdapterQuerybuilderConstruct(IntegrationTester $I)
{
$I->wantToTest('Paginator\Adapter\QueryBuilder - __construct()');
$I->skipTest('Need implementation');
try {
$paginator = new QueryBuilder(
[
'builder' => new \stdClass(),
'limit' => 10,
'page' => 1,
]
);
} catch (\Phalcon\Paginator\Exception $ex) {
$actual = $ex->getMessage();
}
$I->assertEquals(
"Parameter 'builder' must be an instance of Phalcon\Mvc\Model\Query\Builder",
$actual
);
}
}

0 comments on commit bc0ad5e

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