Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
enricodelazzari committed Jan 8, 2024
1 parent f329dbc commit 2745e04
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tests/ExclusionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@

class ExclusionTest extends TestCase
{
private string $exclusionsTable;

public function setUp(): void
{
parent::setUp();

$this->exclusionsTable = (new Exclusion())->getTable();
}

/** @test */
public function it_can_add_model_to_exclusions()
{
Expand Down Expand Up @@ -114,10 +105,10 @@ public function it_can_exclude_all_models_with_exception()
]);

$this
->assertQueryCount(2, Article::query())
->assertExcludableHasWildcard(model: Article::class, data: ['type' => Exclusion::TYPE_EXCLUDE])
->assertExcludableHas(model: $articles[0], data: ['type' => Exclusion::TYPE_INCLUDE])
->assertExcludableHas(model: $articles[1], data: ['type' => Exclusion::TYPE_INCLUDE])
->assertQueryCount(2, Article::query())
->assertQueryCount(5, Article::withExcluded())
->assertQueryCount(2, Article::withoutExcluded())
->assertQueryCount(3, Article::onlyExcluded());
Expand Down

0 comments on commit 2745e04

Please sign in to comment.