Skip to content

Commit

Permalink
test: Make failed tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
nafiesl committed Jun 11, 2023
1 parent 16b9a11 commit 5d75fc6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion tests/Generators/ModelFactoryGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class {$this->model_name}Factory extends Factory
*
* @return array<string, mixed>
*/
public function definition()
public function definition(): array
{
return [
//
Expand Down
5 changes: 0 additions & 5 deletions tests/Generators/ModelPolicyGeneratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,17 +188,12 @@ public function it_doesnt_override_the_existing_model_policy_content()
namespace App\Policies;
use Illuminate\Auth\Access\HandlesAuthorization;
use {$userModel};
class {$this->model_name}Policy
{
use HandlesAuthorization;
/**
* Create a new policy instance.
*
* @return void
*/
public function __construct()
{
Expand Down

0 comments on commit 5d75fc6

Please sign in to comment.