From 73a4abfe132368e4eed56fda69323bbf0c7332ac Mon Sep 17 00:00:00 2001 From: pelmered Date: Mon, 13 May 2024 17:49:42 +0000 Subject: [PATCH] Fix styling --- src/Commands/DomainMigrationMakeCommand.php | 6 ++---- tests/Generator/MakeModelTest.php | 5 +---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/Commands/DomainMigrationMakeCommand.php b/src/Commands/DomainMigrationMakeCommand.php index 7484299..58f585d 100644 --- a/src/Commands/DomainMigrationMakeCommand.php +++ b/src/Commands/DomainMigrationMakeCommand.php @@ -14,7 +14,6 @@ class DomainMigrationMakeCommand extends MigrateMakeCommand */ use ResolvesDomainFromInput; - protected $signature = 'ddd:migration {name : The name of the migration} {--domain= : test} {--create= : The table to be created} @@ -30,11 +29,10 @@ protected function getMigrationPath() //dd(dirname($this->getPath('test'))); return dirname($this->getPath('test')); + dump('mmmm', $this->getDomainPath(''), dirname($this->getDomainPath(''))); - dump('mmmm', $this->getDomainPath(''), dirname($this->getDomainPath(''))); - + dump('mmmm', $this->getDomainPath(''), dirname($this->getDomainPath(''))); - dump('mmmm', $this->getDomainPath(''), dirname($this->getDomainPath(''))); return dirname($this->getDomainPath('')); } diff --git a/tests/Generator/MakeModelTest.php b/tests/Generator/MakeModelTest.php index 5b99f9b..6d64505 100644 --- a/tests/Generator/MakeModelTest.php +++ b/tests/Generator/MakeModelTest.php @@ -6,7 +6,6 @@ use Lunarstorm\LaravelDDD\Support\Domain; use Lunarstorm\LaravelDDD\Tests\Fixtures\Enums\Feature; - function expectGeneratedDomainFile($output, $fileName, $domain, $type) { $domainObject = $domain->$type($fileName); @@ -118,7 +117,7 @@ function expectGeneratedDomainFile($output, $fileName, $domain, $type) expect(file_get_contents($expectedSeederPath)) ->toContain("class {$modelName}Seeder extends Seeder") - ->toContain("public function run(): void"); + ->toContain('public function run(): void'); })->with('domainPaths')->with('domainSubdomain'); it('can generate a domain model with migration', function ($domainPath, $domainRoot, $domainName, $subdomain) { @@ -167,8 +166,6 @@ function expectGeneratedDomainFile($output, $fileName, $domain, $type) ->toContain("protected \$model = {$modelName}::class;"); })->with('domainPaths')->with('domainSubdomain'); - - it('can generate a domain model with all', function ($domainPath, $domainRoot, $domainName, $subdomain) { Config::set('ddd.domain_path', $domainPath);