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