Skip to content

Commit

Permalink
fix: template for generate nova test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
t0xas committed May 15, 2024
1 parent f36d7df commit 1fedc1d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function setUp(): void
{
parent::setUp();

self::$user = User::find(1);
self::$user ??= User::find(1);
self::$postState ??= new ModelTestState(Post::class);

$this->skipDocumentationCollecting();
Expand Down Expand Up @@ -43,7 +43,7 @@ public function testCreateNoAuth(): void
$response->assertUnauthorized();

self::$postState->assertNotChanged();
}
}

public function testCreateValidationError(): void
{
Expand Down Expand Up @@ -252,13 +252,13 @@ public function getPostFiltersData(): array
return [
[
'filters' => [
'TextField:description_field' => 'search term',
'TextField:description_field' => ['search term'],
],
'response_fixture' => 'filter_post_by_text_field.json',
],
[
'filters' => [
'RonasIT\Support\Tests\Support\CreatedAtFilter' => 'search term',
'RonasIT\Support\Tests\Support\CreatedAtFilter' => ['search term'],
],
'response_fixture' => 'filter_post_by_created_at_filter.json',
],
Expand Down

0 comments on commit 1fedc1d

Please sign in to comment.