Skip to content

Commit

Permalink
Remove factories
Browse files Browse the repository at this point in the history
  • Loading branch information
Braden Keith committed Jun 11, 2019
1 parent 55deb65 commit 5bfc38d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 38 deletions.
21 changes: 0 additions & 21 deletions src/Factories/TenantFactory.php

This file was deleted.

6 changes: 0 additions & 6 deletions src/MultitenancyServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ public function boot(Filesystem $filesystem)
$this->registerPublishing($filesystem);
}

$this->app->singleton(EloquentFactory::class, function ($app) {
return EloquentFactory::construct(
$app->make(FakerGenerator::class), __DIR__.'/Factories'
);
});

$this->registerCommands();
$this->registerModelBindings();

Expand Down
11 changes: 0 additions & 11 deletions tests/Databases/MigrateDatabaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,4 @@ public function it_runs_the_migrations()
'updated_at',
], $columns);
}

/** @test **/
public function it_has_factory()
{
$tenant = factory(\RomegaDigital\Multitenancy\Models\Tenant::class)->create();
$compare = \RomegaDigital\Multitenancy\Models\Tenant::latest('id')->first();

$this->assertEquals($compare->id, $tenant->id);
$this->assertEquals($compare->name, $tenant->name);
$this->assertEquals($compare->domain, $tenant->domain);
}
}

0 comments on commit 5bfc38d

Please sign in to comment.