feat: decouple Laravel and CakePHP installers, remove SonarQube artifacts, and enforce complete unit testing standards
- Decouple framework installation: add install-laravel.sh and install-cakephp.sh, isolate skills and docs per framework, and auto-clean leftover artifacts - Remove all SonarQube configs, templates, and references - Enforce comprehensive test completeness: 100% public methods, edge cases, full branch coverage, exception paths, and state assertions - Replace all placeholder assertions in PHPUnit and Pest templates with full realistic implementations - Rename and update 10-comprehensive-test-coverage-guide.md
This commit is contained in:
@@ -7,19 +7,18 @@ use Illuminate\Http\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
beforeEach(function () {
|
||||
// $this->controller = new {{ClassName}}(...);
|
||||
$this->controller = new {{ClassName}}();
|
||||
});
|
||||
|
||||
describe('{{ClassName}}', function () {
|
||||
it('returns successful response', function () {
|
||||
// Arrange
|
||||
// $request = Request::create('/api/resource', 'GET');
|
||||
$request = Request::create('/api/resource', 'GET');
|
||||
|
||||
// Act
|
||||
// $response = $this->controller->index($request);
|
||||
$response = $this->controller->index($request);
|
||||
|
||||
// Assert
|
||||
// expect($response->getStatusCode())->toBe(Response::HTTP_OK);
|
||||
expect(true)->toBeTrue();
|
||||
expect($response->getStatusCode())->toBe(Response::HTTP_OK);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user