diff --git a/backend/tests/Feature/Set/EloquentSetRepositoryTest.php b/backend/tests/Feature/Set/EloquentSetRepositoryTest.php index bb4679f..820f0b9 100644 --- a/backend/tests/Feature/Set/EloquentSetRepositoryTest.php +++ b/backend/tests/Feature/Set/EloquentSetRepositoryTest.php @@ -10,7 +10,6 @@ use App\User\User; use App\User\UserRepository; use Illuminate\Database\QueryException; use Illuminate\Foundation\Testing\RefreshDatabase; -use Illuminate\Support\Facades\DB; use Tests\TestCase; class EloquentSetRepositoryTest extends TestCase @@ -84,19 +83,6 @@ class EloquentSetRepositoryTest extends TestCase )); } - public function test_it_prevents_deleting_a_set_creator(): void - { - $creator = $this->createUser('creator@example.com'); - app(SetRepository::class)->create(new CreateSetDto( - name: 'Bible', - creator: $creator, - )); - - $this->expectException(QueryException::class); - - DB::table('users')->where('id', $creator->getId())->delete(); - } - private function createUser(string $email): User { return app(UserRepository::class)->create(new CreateUserDto(