Skip to content

Commit

Permalink
Merge pull request #222 from spira/analysis-86MvMz
Browse files Browse the repository at this point in the history
Applied fixes from StyleCI
  • Loading branch information
zakhenry committed Sep 4, 2015
2 parents cd3beb9 + 9afec54 commit f985991
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion api/app/Services/ModelFactoryInstance.php
Expand Up @@ -227,7 +227,6 @@ private function modifyEntity(BaseModel $entity)
}

if ($this->customizations) {

foreach ($this->customizations as $key => $value) {
$entity->{$key} = $value;
}
Expand Down
3 changes: 0 additions & 3 deletions api/tests/ModelFactoryTest.php
Expand Up @@ -158,7 +158,6 @@ public function testModelFactoryInstanceArrayableAndJsonable()

public function testPredefinedModel()
{

$testEntity = \App\Models\TestEntity::first();

$serviceCreatedFactoryInstance = $this->modelFactoryTest->get(\App\Models\TestEntity::class)
Expand All @@ -176,7 +175,6 @@ public function testPredefinedModel()

public function testPredefinedCollection()
{

$testEntityCollection = \App\Models\TestEntity::take(10)->get();

$serviceCreatedFactoryCollection = $this->modelFactoryTest->get(\App\Models\TestEntity::class)
Expand All @@ -188,5 +186,4 @@ public function testPredefinedCollection()
$this->assertInstanceOf(\Illuminate\Support\Collection::class, $serviceCreatedFactoryCollection);
$this->assertEquals(3, $serviceCreatedFactoryCollection->count());
}

}

0 comments on commit f985991

Please sign in to comment.