Skip to content

Commit

Permalink
remove unnecessary packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusjatenee committed Jun 4, 2024
1 parent 1728288 commit 624337f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
11 changes: 3 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,8 @@
},
"require-dev": {
"laravel/pint": "^1.0",
"nunomaduro/collision": "^7.8",
"nunomaduro/larastan": "^2.0.1",
"orchestra/testbench": "^8.8",
"pestphp/pest": "^2.20",
"pestphp/pest-plugin-arch": "^2.0",
"pestphp/pest-plugin-laravel": "^2.0",
"orchestra/testbench": "^8.8|^9.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0"
Expand Down Expand Up @@ -57,14 +53,13 @@
"@php vendor/bin/testbench serve"
],
"analyse": "vendor/bin/phpstan analyse",
"test": "vendor/bin/pest",
"test-coverage": "vendor/bin/pest --coverage",
"test": "vendor/bin/phpunit",
"test-coverage": "vendor/bin/phpunit --coverage",
"format": "vendor/bin/pint"
},
"config": {
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"phpstan/extension-installer": true
}
},
Expand Down
7 changes: 4 additions & 3 deletions tests/RequiredRelationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Mateusjatenee\Persist\ModelMissingRequiredRelationshipException;
use Mateusjatenee\Persist\Persist;
use Mateusjatenee\Persist\RequiredRelationship;
use PHPUnit\Framework\Attributes\Test;

class RequiredRelationTest extends TestCase
{
Expand All @@ -37,7 +38,7 @@ protected function defineDatabaseMigrationsAfterDatabaseRefreshed(): void
});
}

/** @test */
#[Test]
public function it_fails_if_a_relationship_is_missing(): void
{
$this->expectException(ModelMissingRequiredRelationshipException::class);
Expand All @@ -46,7 +47,7 @@ public function it_fails_if_a_relationship_is_missing(): void
$post->persist();
}

/** @test */
#[Test]
public function it_fails_if_a_has_many_relationship_is_missing(): void
{
$this->expectException(ModelMissingRequiredRelationshipException::class);
Expand All @@ -56,7 +57,7 @@ public function it_fails_if_a_has_many_relationship_is_missing(): void
$post->persist();
}

/** @test */
#[Test]
public function it_persists_a_model_with_required_relationships(): void
{
$post = PostX::make(['title' => 'test']);
Expand Down

0 comments on commit 624337f

Please sign in to comment.