From e30f0282649a9d2e6934ef69d12db27c8f5d2251 Mon Sep 17 00:00:00 2001 From: Mohammad Alavi Date: Wed, 1 Jan 2025 19:31:01 +0330 Subject: [PATCH] test: remove unneeded test doubles --- .../Book/Actions/DeleteBookAction.php | 20 ----------- .../Book/Actions/FindBookByIdAction.php | 21 ----------- .../Book/Actions/ListBooksAction.php | 20 ----------- .../Book/Actions/UpdateBookAction.php | 25 ------------- .../MySection/Book/Tasks/DeleteBookTask.php | 23 ------------ .../MySection/Book/Tasks/FindBookByIdTask.php | 29 --------------- .../MySection/Book/Tasks/ListBooksTask.php | 23 ------------ .../MySection/Book/Tasks/UpdateBookTask.php | 24 ------------- .../API/Controllers/DeleteBookController.php | 18 ---------- .../Controllers/FindBookByIdController.php | 18 ---------- .../API/Controllers/ListBooksController.php | 26 -------------- .../API/Controllers/UpdateBookController.php | 18 ---------- .../UI/API/Requests/DeleteBookRequest.php | 35 ------------------- .../UI/API/Requests/FindBookByIdRequest.php | 35 ------------------- .../Book/UI/API/Requests/ListBooksRequest.php | 35 ------------------- .../UI/API/Requests/UpdateBookRequest.php | 35 ------------------- .../UI/API/Routes/DeleteBook.v1.private.php | 32 ----------------- .../UI/API/Routes/FindBookById.v1.private.php | 32 ----------------- .../UI/API/Routes/ListBooks.v1.private.php | 32 ----------------- .../UI/API/Routes/UpdateBook.v1.private.php | 32 ----------------- .../WEB/Controllers/DeleteBookController.php | 16 --------- .../Controllers/FindBookByIdController.php | 16 --------- .../WEB/Controllers/ListBooksController.php | 16 --------- .../WEB/Controllers/UpdateBookController.php | 24 ------------- .../UI/WEB/Requests/DeleteBookRequest.php | 35 ------------------- .../Book/UI/WEB/Requests/EditBookRequest.php | 35 ------------------- .../UI/WEB/Requests/FindBookByIdRequest.php | 35 ------------------- .../Book/UI/WEB/Requests/ListBooksRequest.php | 35 ------------------- .../Book/UI/WEB/Requests/StoreBookRequest.php | 35 ------------------- .../UI/WEB/Requests/UpdateBookRequest.php | 35 ------------------- .../UI/WEB/Routes/DeleteBook.v1.private.php | 7 ---- .../UI/WEB/Routes/EditBook.v1.private.php | 7 ---- .../UI/WEB/Routes/FindBookById.v1.private.php | 7 ---- .../UI/WEB/Routes/ListBooks.v1.private.php | 7 ---- .../UI/WEB/Routes/StoreBook.v1.private.php | 7 ---- .../UI/WEB/Routes/UpdateBook.v1.private.php | 7 ---- 36 files changed, 857 deletions(-) delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Actions/DeleteBookAction.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Actions/FindBookByIdAction.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Actions/ListBooksAction.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Actions/UpdateBookAction.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Tasks/DeleteBookTask.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Tasks/FindBookByIdTask.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Tasks/ListBooksTask.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Tasks/UpdateBookTask.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Controllers/DeleteBookController.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Controllers/FindBookByIdController.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Controllers/ListBooksController.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Controllers/UpdateBookController.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Requests/DeleteBookRequest.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Requests/FindBookByIdRequest.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Requests/ListBooksRequest.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Requests/UpdateBookRequest.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Routes/DeleteBook.v1.private.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Routes/FindBookById.v1.private.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Routes/ListBooks.v1.private.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Routes/UpdateBook.v1.private.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Controllers/DeleteBookController.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Controllers/FindBookByIdController.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Controllers/ListBooksController.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Controllers/UpdateBookController.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/DeleteBookRequest.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/EditBookRequest.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/FindBookByIdRequest.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/ListBooksRequest.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/StoreBookRequest.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/UpdateBookRequest.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/DeleteBook.v1.private.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/EditBook.v1.private.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/FindBookById.v1.private.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/ListBooks.v1.private.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/StoreBook.v1.private.php delete mode 100644 tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/UpdateBook.v1.private.php diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Actions/DeleteBookAction.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Actions/DeleteBookAction.php deleted file mode 100644 index 66b0ec1d2..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Actions/DeleteBookAction.php +++ /dev/null @@ -1,20 +0,0 @@ -deleteBookTask->run($request->id); - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Actions/FindBookByIdAction.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Actions/FindBookByIdAction.php deleted file mode 100644 index 3d9e71d56..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Actions/FindBookByIdAction.php +++ /dev/null @@ -1,21 +0,0 @@ -findBookByIdTask->run($request->id); - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Actions/ListBooksAction.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Actions/ListBooksAction.php deleted file mode 100644 index 540c0fd74..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Actions/ListBooksAction.php +++ /dev/null @@ -1,20 +0,0 @@ -listBooksTask->run(); - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Actions/UpdateBookAction.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Actions/UpdateBookAction.php deleted file mode 100644 index 712e2d9d5..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Actions/UpdateBookAction.php +++ /dev/null @@ -1,25 +0,0 @@ -sanitizeInput([ - // add your request data here - ]); - - return $this->updateBookTask->run($data, $request->id); - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Tasks/DeleteBookTask.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Tasks/DeleteBookTask.php deleted file mode 100644 index fc2917417..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Tasks/DeleteBookTask.php +++ /dev/null @@ -1,23 +0,0 @@ -repository->delete($id); - BookDeleted::dispatch($result); - - return $result; - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Tasks/FindBookByIdTask.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Tasks/FindBookByIdTask.php deleted file mode 100644 index 0d2f0ea8c..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Tasks/FindBookByIdTask.php +++ /dev/null @@ -1,29 +0,0 @@ -repository->find($id); - BookRequested::dispatch($book); - - return $book; - } catch (\Exception) { - throw ResourceNotFound::create(); - } - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Tasks/ListBooksTask.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Tasks/ListBooksTask.php deleted file mode 100644 index 62a4bdb3f..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Tasks/ListBooksTask.php +++ /dev/null @@ -1,23 +0,0 @@ -repository->addRequestCriteria()->paginate(); - BooksListed::dispatch($result); - - return $result; - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Tasks/UpdateBookTask.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Tasks/UpdateBookTask.php deleted file mode 100644 index 3fbf37c07..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/Tasks/UpdateBookTask.php +++ /dev/null @@ -1,24 +0,0 @@ -repository->update($data, $id); - BookUpdated::dispatch($book); - - return $book; - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Controllers/DeleteBookController.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Controllers/DeleteBookController.php deleted file mode 100644 index eb6badad3..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Controllers/DeleteBookController.php +++ /dev/null @@ -1,18 +0,0 @@ -run($request); - - return $this->noContent(); - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Controllers/FindBookByIdController.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Controllers/FindBookByIdController.php deleted file mode 100644 index d2ec3e39f..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Controllers/FindBookByIdController.php +++ /dev/null @@ -1,18 +0,0 @@ -run($request); - - return $this->transform($book, BookTransformer::class); - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Controllers/ListBooksController.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Controllers/ListBooksController.php deleted file mode 100644 index b49a38cba..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Controllers/ListBooksController.php +++ /dev/null @@ -1,26 +0,0 @@ -run($request); - - return $this->transform($books, BookTransformer::class); - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Controllers/UpdateBookController.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Controllers/UpdateBookController.php deleted file mode 100644 index fc4d2cdaf..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Controllers/UpdateBookController.php +++ /dev/null @@ -1,18 +0,0 @@ -run($request); - - return $this->transform($book, BookTransformer::class); - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Requests/DeleteBookRequest.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Requests/DeleteBookRequest.php deleted file mode 100644 index bc848e116..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Requests/DeleteBookRequest.php +++ /dev/null @@ -1,35 +0,0 @@ - null, - 'roles' => null, - ]; - - protected array $decode = [ - 'id', - ]; - - protected array $urlParameters = [ - 'id', - ]; - - public function rules(): array - { - return [ - // 'id' => 'required', - ]; - } - - public function authorize(): bool - { - return $this->check([ - 'hasAccess', - ]); - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Requests/FindBookByIdRequest.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Requests/FindBookByIdRequest.php deleted file mode 100644 index b61ca2e98..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Requests/FindBookByIdRequest.php +++ /dev/null @@ -1,35 +0,0 @@ - null, - 'roles' => null, - ]; - - protected array $decode = [ - 'id', - ]; - - protected array $urlParameters = [ - 'id', - ]; - - public function rules(): array - { - return [ - // 'id' => 'required', - ]; - } - - public function authorize(): bool - { - return $this->check([ - 'hasAccess', - ]); - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Requests/ListBooksRequest.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Requests/ListBooksRequest.php deleted file mode 100644 index a60900a28..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Requests/ListBooksRequest.php +++ /dev/null @@ -1,35 +0,0 @@ - null, - 'roles' => null, - ]; - - protected array $decode = [ - // 'id', - ]; - - protected array $urlParameters = [ - // 'id', - ]; - - public function rules(): array - { - return [ - // 'id' => 'required', - ]; - } - - public function authorize(): bool - { - return $this->check([ - 'hasAccess', - ]); - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Requests/UpdateBookRequest.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Requests/UpdateBookRequest.php deleted file mode 100644 index c86e04ce5..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Requests/UpdateBookRequest.php +++ /dev/null @@ -1,35 +0,0 @@ - null, - 'roles' => null, - ]; - - protected array $decode = [ - 'id', - ]; - - protected array $urlParameters = [ - 'id', - ]; - - public function rules(): array - { - return [ - // 'id' => 'required', - ]; - } - - public function authorize(): bool - { - return $this->check([ - 'hasAccess', - ]); - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Routes/DeleteBook.v1.private.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Routes/DeleteBook.v1.private.php deleted file mode 100644 index 50b61eb56..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Routes/DeleteBook.v1.private.php +++ /dev/null @@ -1,32 +0,0 @@ - '', 'roles' => ''] - * - * @apiHeader {String} accept=application/json - * @apiHeader {String} authorization=Bearer - * - * @apiParam {String} parameters here... - * - * @apiSuccessExample {json} Success-Response: - * HTTP/1.1 200 OK - * { - * // Insert the response of the request here... - * } - */ - -use Illuminate\Support\Facades\Route; -use Tests\Support\Doubles\Fakes\Laravel\app\Containers\MySection\Book\UI\API\Controllers\DeleteBookController; - -Route::delete('books/{id}', DeleteBookController::class) - ->middleware(['auth:api']); diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Routes/FindBookById.v1.private.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Routes/FindBookById.v1.private.php deleted file mode 100644 index 10e0daf92..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Routes/FindBookById.v1.private.php +++ /dev/null @@ -1,32 +0,0 @@ - '', 'roles' => ''] - * - * @apiHeader {String} accept=application/json - * @apiHeader {String} authorization=Bearer - * - * @apiParam {String} parameters here... - * - * @apiSuccessExample {json} Success-Response: - * HTTP/1.1 200 OK - * { - * // Insert the response of the request here... - * } - */ - -use Illuminate\Support\Facades\Route; -use Tests\Support\Doubles\Fakes\Laravel\app\Containers\MySection\Book\UI\API\Controllers\FindBookByIdController; - -Route::get('books/{id}', FindBookByIdController::class) - ->middleware(['auth:api']); diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Routes/ListBooks.v1.private.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Routes/ListBooks.v1.private.php deleted file mode 100644 index 8403e0c88..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Routes/ListBooks.v1.private.php +++ /dev/null @@ -1,32 +0,0 @@ - '', 'roles' => ''] - * - * @apiHeader {String} accept=application/json - * @apiHeader {String} authorization=Bearer - * - * @apiParam {String} parameters here... - * - * @apiSuccessExample {json} Success-Response: - * HTTP/1.1 200 OK - * { - * // Insert the response of the request here... - * } - */ - -use Illuminate\Support\Facades\Route; -use Tests\Support\Doubles\Fakes\Laravel\app\Containers\MySection\Book\UI\API\Controllers\ListBooksController; - -Route::get('books', ListBooksController::class) - ->middleware(['auth:api']); diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Routes/UpdateBook.v1.private.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Routes/UpdateBook.v1.private.php deleted file mode 100644 index 453f0fb99..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/API/Routes/UpdateBook.v1.private.php +++ /dev/null @@ -1,32 +0,0 @@ - '', 'roles' => ''] - * - * @apiHeader {String} accept=application/json - * @apiHeader {String} authorization=Bearer - * - * @apiParam {String} parameters here... - * - * @apiSuccessExample {json} Success-Response: - * HTTP/1.1 200 OK - * { - * // Insert the response of the request here... - * } - */ - -use Illuminate\Support\Facades\Route; -use Tests\Support\Doubles\Fakes\Laravel\app\Containers\MySection\Book\UI\API\Controllers\UpdateBookController; - -Route::patch('books/{id}', UpdateBookController::class) - ->middleware(['auth:api']); diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Controllers/DeleteBookController.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Controllers/DeleteBookController.php deleted file mode 100644 index 97faa8962..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Controllers/DeleteBookController.php +++ /dev/null @@ -1,16 +0,0 @@ -run($request); - // ... - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Controllers/FindBookByIdController.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Controllers/FindBookByIdController.php deleted file mode 100644 index 7cf866ade..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Controllers/FindBookByIdController.php +++ /dev/null @@ -1,16 +0,0 @@ -run($request); - // ... - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Controllers/ListBooksController.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Controllers/ListBooksController.php deleted file mode 100644 index 5ce93af9a..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Controllers/ListBooksController.php +++ /dev/null @@ -1,16 +0,0 @@ -run($request); - // ... - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Controllers/UpdateBookController.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Controllers/UpdateBookController.php deleted file mode 100644 index d8f56a82c..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Controllers/UpdateBookController.php +++ /dev/null @@ -1,24 +0,0 @@ -run($request); - // ... - } - - public function update(UpdateBookRequest $request) - { - $book = app(UpdateBookAction::class)->run($request); - // ... - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/DeleteBookRequest.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/DeleteBookRequest.php deleted file mode 100644 index f4da75249..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/DeleteBookRequest.php +++ /dev/null @@ -1,35 +0,0 @@ - null, - 'roles' => null, - ]; - - protected array $decode = [ - 'id', - ]; - - protected array $urlParameters = [ - 'id', - ]; - - public function rules(): array - { - return [ - // 'id' => 'required', - ]; - } - - public function authorize(): bool - { - return $this->check([ - 'hasAccess', - ]); - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/EditBookRequest.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/EditBookRequest.php deleted file mode 100644 index cd39055df..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/EditBookRequest.php +++ /dev/null @@ -1,35 +0,0 @@ - null, - 'roles' => null, - ]; - - protected array $decode = [ - 'id', - ]; - - protected array $urlParameters = [ - 'id', - ]; - - public function rules(): array - { - return [ - // 'id' => 'required', - ]; - } - - public function authorize(): bool - { - return $this->check([ - 'hasAccess', - ]); - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/FindBookByIdRequest.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/FindBookByIdRequest.php deleted file mode 100644 index 38e3ee096..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/FindBookByIdRequest.php +++ /dev/null @@ -1,35 +0,0 @@ - null, - 'roles' => null, - ]; - - protected array $decode = [ - 'id', - ]; - - protected array $urlParameters = [ - 'id', - ]; - - public function rules(): array - { - return [ - // 'id' => 'required', - ]; - } - - public function authorize(): bool - { - return $this->check([ - 'hasAccess', - ]); - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/ListBooksRequest.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/ListBooksRequest.php deleted file mode 100644 index 149dcc409..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/ListBooksRequest.php +++ /dev/null @@ -1,35 +0,0 @@ - null, - 'roles' => null, - ]; - - protected array $decode = [ - // 'id', - ]; - - protected array $urlParameters = [ - // 'id', - ]; - - public function rules(): array - { - return [ - // 'id' => 'required', - ]; - } - - public function authorize(): bool - { - return $this->check([ - 'hasAccess', - ]); - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/StoreBookRequest.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/StoreBookRequest.php deleted file mode 100644 index eb82f884e..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/StoreBookRequest.php +++ /dev/null @@ -1,35 +0,0 @@ - null, - 'roles' => null, - ]; - - protected array $decode = [ - // 'id', - ]; - - protected array $urlParameters = [ - // 'id', - ]; - - public function rules(): array - { - return [ - // 'id' => 'required', - ]; - } - - public function authorize(): bool - { - return $this->check([ - 'hasAccess', - ]); - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/UpdateBookRequest.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/UpdateBookRequest.php deleted file mode 100644 index 17d476170..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Requests/UpdateBookRequest.php +++ /dev/null @@ -1,35 +0,0 @@ - null, - 'roles' => null, - ]; - - protected array $decode = [ - 'id', - ]; - - protected array $urlParameters = [ - 'id', - ]; - - public function rules(): array - { - return [ - // 'id' => 'required', - ]; - } - - public function authorize(): bool - { - return $this->check([ - 'hasAccess', - ]); - } -} diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/DeleteBook.v1.private.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/DeleteBook.v1.private.php deleted file mode 100644 index cfa90a8af..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/DeleteBook.v1.private.php +++ /dev/null @@ -1,7 +0,0 @@ -middleware(['auth:web']); diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/EditBook.v1.private.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/EditBook.v1.private.php deleted file mode 100644 index 5ee502105..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/EditBook.v1.private.php +++ /dev/null @@ -1,7 +0,0 @@ -middleware(['auth:web']); diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/FindBookById.v1.private.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/FindBookById.v1.private.php deleted file mode 100644 index b1a6c3e62..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/FindBookById.v1.private.php +++ /dev/null @@ -1,7 +0,0 @@ -middleware(['auth:web']); diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/ListBooks.v1.private.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/ListBooks.v1.private.php deleted file mode 100644 index 69deb4f2a..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/ListBooks.v1.private.php +++ /dev/null @@ -1,7 +0,0 @@ -middleware(['auth:web']); diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/StoreBook.v1.private.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/StoreBook.v1.private.php deleted file mode 100644 index c81e97830..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/StoreBook.v1.private.php +++ /dev/null @@ -1,7 +0,0 @@ -middleware(['auth:web']); diff --git a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/UpdateBook.v1.private.php b/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/UpdateBook.v1.private.php deleted file mode 100644 index af67f4ada..000000000 --- a/tests/Support/Doubles/Fakes/Laravel/app/Containers/MySection/Book/UI/WEB/Routes/UpdateBook.v1.private.php +++ /dev/null @@ -1,7 +0,0 @@ -middleware(['auth:web']);