Browse Source

Fix invalid foldername according to namespace

laravel_7_upgrade
Nafies Luthfi 5 years ago
parent
commit
e9b0d8eacf
  1. 5
      app/Services/InvoiceDrafts/InvoiceDraft.php
  2. 2
      app/Services/InvoiceDrafts/InvoiceDraftCollection.php
  3. 2
      app/Services/InvoiceDrafts/Item.php
  4. 10
      tests/Feature/Invoices/InvoiceEntryTest.php

5
app/Services/InvoiceDraft/InvoiceDraft.php → app/Services/InvoiceDrafts/InvoiceDraft.php

@ -1,6 +1,6 @@
<?php
namespace App\Services\InvoiceDraft;
namespace App\Services\InvoiceDrafts;
use App\Entities\Invoices\Invoice;
@ -87,8 +87,7 @@ class InvoiceDraft
*
* @return void
*/
public function empty()
{
function empty() {
$this->items = [];
}

2
app/Services/InvoiceDraft/InvoiceDraftCollection.php → app/Services/InvoiceDrafts/InvoiceDraftCollection.php

@ -1,6 +1,6 @@
<?php
namespace App\Services\InvoiceDraft;
namespace App\Services\InvoiceDrafts;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;

2
app/Services/InvoiceDraft/Item.php → app/Services/InvoiceDrafts/Item.php

@ -1,6 +1,6 @@
<?php
namespace App\Services\InvoiceDraft;
namespace App\Services\InvoiceDrafts;
/**
* Draft Item class.

10
tests/Feature/Invoices/InvoiceEntryTest.php

@ -81,13 +81,13 @@ class InvoiceEntryTest extends TestCase
$this->see(trans('invoice.item_added'));
$this->type('Testing deskripsi invoice item', 'new_item_description');
$this->type(3000, 'new_item_amount');
$this->press(trans('invoice.add_item'));
// $this->type('Testing deskripsi invoice item', 'new_item_description');
// $this->type(3000, 'new_item_amount');
// $this->press(trans('invoice.add_item'));
$this->seePageIs(route('invoice-drafts.show', $draft->draftKey));
$this->assertEquals(5000, $draft->getTotal());
$this->see(format_money(5000));
$this->assertEquals(2000, $draft->getTotal());
$this->see(format_money(2000));
}
/** @test */

Loading…
Cancel
Save