update mock refs

This commit is contained in:
karneaud 2024-07-22 20:03:46 -04:00
parent 245fc2ad77
commit 7200591b1e
3 changed files with 3 additions and 3 deletions

View File

@ -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']);
}

View File

@ -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']);
}

View File

@ -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']);
}