Skip to content

Commit

Permalink
add test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
sweikenb committed Jul 14, 2024
1 parent 2b20c0b commit add84f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
use PHPUnit\Framework\TestCase;
use Sweikenb\Library\Dirty\Api\ConfigInterface;
use Sweikenb\Library\Dirty\Factory;
use Sweikenb\Library\Dirty\Model\ConfigModel;
use Sweikenb\Library\Dirty\Model\DiffModel;
use Sweikenb\Library\Dirty\Model\DirtyCheckResultModel;
use Sweikenb\Library\Dirty\Model\NormalizedModel;

#[CoversClass(DirtyCheckResultModel::class)]
#[CoversClass(NormalizedModel::class)]
#[CoversClass(ConfigInterface::class)]
#[CoversClass(DiffModel::class)]
#[CoversClass(ConfigModel::class)]
#[CoversClass(Factory::class)]
class FactoryTest extends TestCase
{
Expand Down Expand Up @@ -55,6 +56,7 @@ public function testCreateConfig(): void
$model = $this->factory->createConfig($check, $ignore);

$this->assertInstanceOf(ConfigInterface::class, $model);
$this->assertInstanceOf(ConfigModel::class, $model);
$this->assertSame($model->getFieldsToCheck(), $check);
$this->assertSame($model->getFieldsToIgnore(), $ignore);
}
Expand Down

0 comments on commit add84f3

Please sign in to comment.