Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
pelmered authored and github-actions[bot] committed May 13, 2024
1 parent 8df99a8 commit 73a4abf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/Commands/DomainMigrationMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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(''));
}

Expand Down
5 changes: 1 addition & 4 deletions tests/Generator/MakeModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 73a4abf

Please sign in to comment.