Skip to content

Commit

Permalink
Dropped redundant HttpExceptionInterface call, fixed testCreateOrRepl…
Browse files Browse the repository at this point in the history
…aceUpdate test
  • Loading branch information
zakhenry committed Jun 26, 2015
1 parent 486d70d commit c14a731
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions api/app/Exceptions/ValidationException.php
Expand Up @@ -2,9 +2,8 @@

use Illuminate\Support\MessageBag;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;

class ValidationException extends HttpException implements HttpExceptionInterface
class ValidationException extends HttpException
{

/**
Expand Down
1 change: 0 additions & 1 deletion api/app/Http/Controllers/BaseController.php
Expand Up @@ -3,7 +3,6 @@
use App;
use Laravel\Lumen\Routing\Controller;
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Illuminate\Http\Request;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Collection;
Expand Down
4 changes: 3 additions & 1 deletion api/tests/Repositories/TestRepositoryTest.php
Expand Up @@ -89,7 +89,9 @@ public function testCreateOrReplaceUpdate()
$entity = factory(App\Models\TestEntity::class)->create();
$id = $entity->entity_id;

$entityUpdate = factory(App\Models\TestEntity::class)->make();
$entityUpdate = factory(App\Models\TestEntity::class)->make([
'entity_id' => $id //make sure the id doesn't change
]);
$entityUpdate = $entityUpdate->getAttributes();

$rowCount = $this->repository->count();
Expand Down

0 comments on commit c14a731

Please sign in to comment.