diff --git a/resources/views/pages/home.blade.php b/resources/views/pages/home.blade.php
index 7cc886a..c756a82 100755
--- a/resources/views/pages/home.blade.php
+++ b/resources/views/pages/home.blade.php
@@ -9,7 +9,7 @@
-
+
@foreach($projectStatuses::all() as $statusId => $status)
@@ -25,7 +25,7 @@
@endforeach
-
+
diff --git a/tests/Feature/Payments/ManagePaymentsTest.php b/tests/Feature/Payments/ManagePaymentsTest.php
index c7fc3b1..4b83a50 100644
--- a/tests/Feature/Payments/ManagePaymentsTest.php
+++ b/tests/Feature/Payments/ManagePaymentsTest.php
@@ -13,9 +13,9 @@ class ManagePaymentsTest extends TestCase
/** @test */
public function admin_can_entry_project_an_income_payment()
{
- $user = $this->adminUserSigningIn();
+ $user = $this->adminUserSigningIn();
$customer = factory(Customer::class)->create();
- $project = factory(Project::class)->create();
+ $project = factory(Project::class)->create();
$this->visit(route('payments.index'));
$this->seePageIs(route('payments.index'));
@@ -45,8 +45,8 @@ class ManagePaymentsTest extends TestCase
/** @test */
public function admin_can_entry_project_an_expanse_payment()
{
- $user = $this->adminUserSigningIn();
- $vendor = factory(Vendor::class)->create();
+ $user = $this->adminUserSigningIn();
+ $vendor = factory(Vendor::class)->create();
$project = factory(Project::class)->create();
$this->visit(route('payments.index'));
@@ -78,14 +78,9 @@ class ManagePaymentsTest extends TestCase
/** @test */
public function admin_can_edit_payment_data()
{
- $user = $this->adminUserSigningIn();
- $customer = factory(Customer::class)->create();
- $project = factory(Project::class)->create();
+ $user = $this->adminUserSigningIn();
- $payment = factory(Payment::class)->create([
- 'partner_id' => $customer->id,
- 'project_id' => $project->id,
- ]);
+ $payment = factory(Payment::class)->create();
$this->visit(route('payments.edit', $payment->id));
$this->seePageIs(route('payments.edit', $payment->id));
@@ -99,20 +94,16 @@ class ManagePaymentsTest extends TestCase
$this->see(trans('payment.updated'));
$this->seeInDatabase('payments', [
- 'partner_id' => $customer->id,
- 'project_id' => $project->id,
- 'date' => '2016-05-20',
- 'amount' => 1234567890,
+ 'date' => '2016-05-20',
+ 'amount' => 1234567890,
]);
}
/** @test */
public function admin_can_delete_a_payment()
{
- $user = $this->adminUserSigningIn();
- $customer = factory(Customer::class)->create();
- $project = factory(Project::class)->create(['customer_id' => $customer->id]);
- $payment = factory(Payment::class)->create(['project_id' => $project->id, 'partner_id' => $customer->id]);
+ $user = $this->adminUserSigningIn();
+ $payment = factory(Payment::class)->create();
$this->visit(route('payments.index'));
$this->click(trans('app.edit'));
@@ -125,10 +116,8 @@ class ManagePaymentsTest extends TestCase
/** @test */
public function admin_can_see_a_payment()
{
- $user = $this->adminUserSigningIn();
- $customer = factory(Customer::class)->create();
- $project = factory(Project::class)->create(['customer_id' => $customer->id]);
- $payment = factory(Payment::class)->create(['project_id' => $project->id, 'partner_id' => $customer->id]);
+ $user = $this->adminUserSigningIn();
+ $payment = factory(Payment::class)->create();
$this->visit(route('payments.index'));
$this->click(trans('app.show'));
diff --git a/tests/Feature/Payments/PaymentSearchTest.php b/tests/Feature/Payments/PaymentSearchTest.php
index f9887ef..9c0f013 100644
--- a/tests/Feature/Payments/PaymentSearchTest.php
+++ b/tests/Feature/Payments/PaymentSearchTest.php
@@ -2,7 +2,6 @@
namespace Tests\Feature\Payments;
-use App\Entities\Partners\Customer;
use App\Entities\Payments\Payment;
use App\Entities\Projects\Project;
use Tests\TestCase;
@@ -12,12 +11,10 @@ class PaymentSearchTest extends TestCase
/** @test */
public function user_can_find_payment_by_project_name()
{
- $admin = $this->adminUserSigningIn();
- $customer = factory(Customer::class)->create();
- $project = factory(Project::class)->create(['customer_id' => $customer->id, 'name' => 'Project']);
- $payment = factory(Payment::class)->create(['project_id' => $project->id, 'partner_id' => $customer->id]);
- $project2 = factory(Project::class)->create(['customer_id' => $customer->id]);
- $unShownPayment = factory(Payment::class)->create(['project_id' => $project2->id, 'partner_id' => $customer->id]);
+ $this->adminUserSigningIn();
+ $project = factory(Project::class)->create(['name' => 'Project']);
+ $payment = factory(Payment::class)->create(['project_id' => $project->id]);
+ $unShownPayment = factory(Payment::class)->create();
$this->visit(route('payments.index'));
$this->submitForm(trans('app.search'), [
@@ -33,19 +30,9 @@ class PaymentSearchTest extends TestCase
/** @test */
public function partner_find_payment_by_customer_id()
{
- $admin = $this->adminUserSigningIn();
- $project = factory(Project::class)->create(['name' => 'Project']);
- $payment = factory(Payment::class)->create(['project_id' => $project->id]);
- $project2 = factory(Project::class)->create();
- $unShownPayment = factory(Payment::class)->create(['project_id' => $project2->id]);
-
- $admin = $this->adminUserSigningIn();
- $customer = factory(Customer::class)->create();
- $project = factory(Project::class)->create(['customer_id' => $customer->id, 'name' => 'Project']);
- $payment = factory(Payment::class)->create(['project_id' => $project->id, 'partner_id' => $customer->id]);
- $customer2 = factory(Customer::class)->create();
- $project2 = factory(Project::class)->create(['customer_id' => $customer2->id]);
- $unShownPayment = factory(Payment::class)->create(['project_id' => $project2->id, 'partner_id' => $customer2->id]);
+ $this->adminUserSigningIn();
+ $payment = factory(Payment::class)->create();
+ $unShownPayment = factory(Payment::class)->create();
$this->visit(route('payments.index'));
$this->submitForm(trans('app.search'), [