From aecaf7efbd59e92f2814dd84b5cebd0349f7672e Mon Sep 17 00:00:00 2001 From: Milwad Khosravi Date: Sun, 2 Jun 2024 10:04:06 +0330 Subject: [PATCH] Delete MakeQueryCommandTest.php --- tests/Commands/MakeQueryCommandTest.php | 76 ------------------------- 1 file changed, 76 deletions(-) delete mode 100644 tests/Commands/MakeQueryCommandTest.php diff --git a/tests/Commands/MakeQueryCommandTest.php b/tests/Commands/MakeQueryCommandTest.php deleted file mode 100644 index ec3d7ce..0000000 --- a/tests/Commands/MakeQueryCommandTest.php +++ /dev/null @@ -1,76 +0,0 @@ -artisan('crud:make', ['name' => 'Product']) - ->expectsQuestion('Do you want something extra?', 0) - ->assertSuccessful() - ->expectsOutput('Crud files successfully generated...'); - - Artisan::call('migrate'); - - $this->artisan('crud:query', ['table_name' => 'products', 'model' => 'Product']) - ->expectsQuestion('Do you want something extra?', 0) - ->assertSuccessful() - ->expectsOutput('Crud files successfully generated...'); - - $this->ensureCrudFilesExistsWithCorrectData(); - } - - /** - * Ensure all crud files exists with correct data. - */ - protected function ensureCrudFilesExistsWithCorrectData(): void - { - // Model - $this->assertFileContains([ - 'assertFileContains([ - 'assertFileContains([ - 'assertFileContains([ - 'assertFileContains(['{{-- Start to write code - milwad-dev --}}'], 'resources/views/products/index.blade.php'); - $this->assertFileContains(['{{-- Start to write code - milwad-dev --}}'], 'resources/views/products/create.blade.php'); - $this->assertFileContains(['{{-- Start to write code - milwad-dev --}}'], 'resources/views/products/edit.blade.php'); - } -} \ No newline at end of file