Skip to content

Commit

Permalink
* fixed deprecated Paginator component.
Browse files Browse the repository at this point in the history
* upgraded fixture to new cakephp fixture system.
* fixed deprecated phpunit expectErrorMessageMatches() and expectError() methods.
* fixed deprecated Time (I18n) class.
  • Loading branch information
kewlburn committed Mar 15, 2023
1 parent fec3c6a commit 6f6d43c
Show file tree
Hide file tree
Showing 10 changed files with 414 additions and 368 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
composer.lock
/vendor/
.php_cs.cache
.phpunit.result.cache
.phpunit.cache
11 changes: 4 additions & 7 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,9 @@
</testsuite>
</testsuites>

<listeners>
<listener class="\Cake\TestSuite\Fixture\FixtureInjector">
<arguments>
<object class="\Cake\TestSuite\Fixture\FixtureManager" />
</arguments>
</listener>
</listeners>
<extensions>
<extension class="\Cake\TestSuite\Fixture\PHPUnitExtension" />
</extensions>

<coverage>
<include>
Expand All @@ -31,5 +27,6 @@

<php>
<ini name="date.timezone" value="UTC" />
<env name="FIXTURE_SCHEMA_METADATA" value="./tests/schema.php"/>
</php>
</phpunit>
2 changes: 1 addition & 1 deletion src/Datasource/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Lampager\Cake\Datasource;

use Cake\Datasource\Paginator as CakePaginator;
use Cake\Datasource\Paging\NumericPaginator as CakePaginator;
use Cake\Datasource\QueryInterface;
use Cake\Datasource\ResultSetInterface;
use Exception;
Expand Down
Loading

0 comments on commit 6f6d43c

Please sign in to comment.