mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
update mock refs
This commit is contained in:
parent
245fc2ad77
commit
7200591b1e
@ -18,7 +18,7 @@ class ClientTransformerTest extends TestCase
|
||||
$company = (new \App\Factory\CompanyFactory)->create(1234);
|
||||
|
||||
// Read the JSON string from a file and decode into an associative array
|
||||
$this->customer_data = json_decode( file_get_contents( app_path('/../tests/Mock/Response/Quickbooks/customer.json') ), true);
|
||||
$this->customer_data = json_decode( file_get_contents( app_path('/../tests/Mock/Quickbooks/Data/customer.json') ), true);
|
||||
$this->transformer = new ClientTransformer($company);
|
||||
$this->transformed_data = $this->transformer->transform($this->customer_data['Customer']);
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ class InvoiceTransformerTest extends TestCase
|
||||
$this->withoutExceptionHandling();
|
||||
Auth::setUser($this->user);
|
||||
// Read the JSON string from a file and decode into an associative array
|
||||
$this->invoiceData = json_decode( file_get_contents( app_path('/../tests/Mock/Response/Quickbooks/invoice.json') ), true);
|
||||
$this->invoiceData = json_decode( file_get_contents( app_path('/../tests/Mock/Quickbooks/Data/invoice.json') ), true);
|
||||
$this->transformer = new InvoiceTransformer($this->company);
|
||||
$this->transformedData = $this->transformer->transform($this->invoiceData['Invoice']);
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ class ProductTransformerTest extends TestCase
|
||||
$company = (new \App\Factory\CompanyFactory)->create(1234);
|
||||
|
||||
// Read the JSON string from a file and decode into an associative array
|
||||
$this->product_data = json_decode( file_get_contents( app_path('/../tests/Mock/Response/Quickbooks/item.json') ), true);
|
||||
$this->product_data = json_decode( file_get_contents( app_path('/../tests/Mock/Quickbooks/Data/item.json') ), true);
|
||||
$this->transformer = new ProductTransformer($company);
|
||||
$this->transformed_data = $this->transformer->transform($this->product_data['Item']);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user