diff --git a/src/Commands/MakeFactoryReloadedCommand.php b/src/Commands/MakeFactoryReloadedCommand.php index 56e3c0b..4ea6ded 100644 --- a/src/Commands/MakeFactoryReloadedCommand.php +++ b/src/Commands/MakeFactoryReloadedCommand.php @@ -59,7 +59,8 @@ public function handle() $this->makeDirectory($classPath); $this->files->put($classPath, $this->sortImports($this->buildClass($this->fullClassName))); - $this->info($this->type.' created successfully.'); + + $this->info(config('factories-reloaded.factories_namespace') . '\\' . $this->className.$this->type . ' created successfully.'); } /** diff --git a/tests/Factories/tmp/GroupFactory.php b/tests/Factories/tmp/GroupFactory.php deleted file mode 100644 index 22e3db0..0000000 --- a/tests/Factories/tmp/GroupFactory.php +++ /dev/null @@ -1,25 +0,0 @@ -artisan('make:factoryReloaded') ->expectsQuestion('Please pick a model', 'Christophrumpel\LaravelFactoriesReloaded\Tests\Models\Group') - ->expectsOutput('Factory created successfully.') + ->expectsOutput('Tests\Factories\GroupFactory created successfully.') ->assertExitCode(0); $this->assertTrue(File::exists(__DIR__.'/Factories/tmp/GroupFactory.php'));