Refactor Team Subscription and Custom Fields Tests #279
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose
Improve test suite organization and remove unnecessary code in the team subscription and custom fields test files.
This pull request was created to solve the following GitHub issue:
PHPUnit tests failed.
Details
An error occurred inside PHPUnit.
Message: Unmatched '}'
Location: /var/www/html/laravel/contacts/tests/Feature/CustomFieldsTest.php:182
PHP Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in /var/www/html/laravel/contacts/tests/Feature/TeamSubscriptionTest.php on line 5
Fix PHPUnit Test Syntax Errors
Description:
Fix syntax errors in two test files that are causing PHPUnit failures: an unmatched curly brace and an incorrect namespace declaration.
Tasks:
In
tests/Feature/CustomFieldsTest.php
:In
tests/Feature/TeamSubscriptionTest.php
:Test:
The existing test cases will run after fixing these syntax errors:
CustomFieldsTest
(7 test methods)TeamSubscriptionTest
(3 test methods)Description
This pull request focuses on cleaning up and refactoring test files in the project. The changes include:
Summary
use
statement intests/Feature/TeamSubscriptionTest.php
Fixes
Fixes #278. Continue the conversation here: https://app.sweep.dev/c/355e5742-c151-4c21-ab8f-77a9e19f65c6.
To have Sweep make further changes, please add a comment to this PR starting with "Sweep:".
📖 For more information on how to use Sweep, please read our documentation.