Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

Commit

Permalink
More namespace fixes
Browse files Browse the repository at this point in the history
More template namespace fixes
  • Loading branch information
mlantz committed Apr 17, 2016
1 parent 3ad8c75 commit e7307a6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Templates/Factory.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
|--------------------------------------------------------------------------
*/

$factory->define(\App\Repositories\_camel_case_\_camel_case_::class, function (Faker\Generator $faker) {
$factory->define(_app_namespace_Repositories\_camel_case_\_camel_case_::class, function (Faker\Generator $faker) {
return [

// prepare your table here
Expand Down
2 changes: 1 addition & 1 deletion src/Templates/Request.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace _namespace_request_;

use Auth;
use App\Http\Requests\Request;
use _app_namespace_Http\Requests\Request;
use _namespace_repository_\_camel_case_;

class _camel_case_Request extends Request
Expand Down
2 changes: 1 addition & 1 deletion src/Templates/Tests/RepositoryTest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class _camel_case_RepositoryTest extends TestCase
public function testCreate()
{
$response = $this->repo->create($this->originalArray);
$this->assertEquals(get_class($response), 'App\Repositories\_camel_case_\_camel_case_');
$this->assertEquals(get_class($response), '_namespace_repository_\_camel_case_');
$this->assertEquals(1, $response->id);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Templates/Tests/ServiceTest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class _camel_case_ServiceTest extends TestCase
public function testCreate()
{
$response = $this->service->create($this->originalArray);
$this->assertEquals(get_class($response), 'App\Repositories\_camel_case_\_camel_case_');
$this->assertEquals(get_class($response), '_namespace_repository_\_camel_case_');
$this->assertEquals(1, $response->id);
}

Expand Down

0 comments on commit e7307a6

Please sign in to comment.