Skip to content

Commit

Permalink
Fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Rumpel committed Feb 5, 2020
2 parents 5f4a603 + 76352c0 commit c764689
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 27 deletions.
3 changes: 2 additions & 1 deletion src/Commands/MakeFactoryReloadedCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}

/**
Expand Down
25 changes: 0 additions & 25 deletions tests/Factories/tmp/GroupFactory.php

This file was deleted.

2 changes: 1 addition & 1 deletion tests/FactoryCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function it_creates_factory_for_chosen_model()
$this->artisan('make:factoryReloaded')
->expectsQuestion('Please pick a model',
'<href=file://'.__DIR__.'/Models/Group.php>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'));
Expand Down

0 comments on commit c764689

Please sign in to comment.