Skip to content

Commit

Permalink
Fix phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
glorand committed Mar 13, 2024
1 parent 8235274 commit 630d559
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
17 changes: 6 additions & 11 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,10 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="Glorand Model Settings Test Suite">
<directory>tests</directory>
Expand All @@ -27,4 +17,9 @@
<php>

</php>
<source>
<include>
<directory suffix=".php">src</directory>
</include>
</source>
</phpunit>
2 changes: 1 addition & 1 deletion tests/TableSettingsManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function testAddEagerConstraints()
$this->model->settings()->apply($this->testArray);
$this->assertEquals(1, ModelSettings::all()->count());

$this->expectErrorMessage('addEagerConstraints');
$this->expectExceptionMessage('addEagerConstraints');
$this->model->load('settings')->settings()->set('test', 'test');

$this->model->load('modelSettings')->settings()->set('test', 'test');
Expand Down

0 comments on commit 630d559

Please sign in to comment.