Skip to content

Commit b9ba56b

Browse files
gplanchatJoMessina
authored andcommitted
Fixed errors in the unit tests
1 parent 68b0dae commit b9ba56b

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/CustomerExtractor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private function rejectErrorResponse(ErrorResponse $response, array $parameters,
5555
$this->logger->error(
5656
$response->getMessage(),
5757
[
58-
'resource' => 'getV1Orders',
58+
'resource' => 'getV1CustomersSearch',
5959
'method' => 'get',
6060
'queryParameters' => $parameters,
6161
'currentPage' => $currentPage,
@@ -75,7 +75,7 @@ private function rejectInvalidResponse(array $parameters, int $currentPage): Rej
7575
$this->logger->error(
7676
$message = 'The result provided by the API client does not match the expected type. The connector compilation may have fetched incompatible versions.',
7777
[
78-
'resource' => 'getV1Orders',
78+
'resource' => 'getV1CustomersSearch',
7979
'method' => 'get',
8080
'queryParameters' => $parameters,
8181
'currentPage' => $currentPage,

src/InvoiceExtractor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private function rejectErrorResponse(ErrorResponse $response, array $parameters,
5353
$this->logger->error(
5454
$response->getMessage(),
5555
[
56-
'resource' => 'getV1Orders',
56+
'resource' => 'getV1Invoices',
5757
'method' => 'get',
5858
'queryParameters' => $parameters,
5959
'currentPage' => $currentPage,
@@ -73,7 +73,7 @@ private function rejectInvalidResponse(array $parameters, int $currentPage): Rej
7373
$this->logger->error(
7474
$message = 'The result provided by the API client does not match the expected type. The connector compilation may have fetched incompatible versions.',
7575
[
76-
'resource' => 'getV1Orders',
76+
'resource' => 'getV1Invoices',
7777
'method' => 'get',
7878
'queryParameters' => $parameters,
7979
'currentPage' => $currentPage,

tests/Filter/ScalarFilterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function shouldProduceOneVariant(): void
1717
$this->assertCount(1, iterator_to_array($filter->getIterator(), false));
1818
$this->assertContains([
1919
'field' => 'foo',
20-
'value' => 4,
20+
'value' => '4',
2121
'conditionType' => 'eq',
2222
], $filter);
2323
}

tests/InvoiceExtractorTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Tests\Kiboko\Magento\V2\Extractor;
5+
namespace Tests\Kiboko\Component\Flow\Magento2;
66

77
use Kiboko\Component\Flow\Magento2\Filter\ScalarFilter;
88
use Kiboko\Component\Flow\Magento2\FilterGroup;
@@ -11,9 +11,9 @@
1111
use Kiboko\Component\PHPUnitExtension\Assert\ExtractorAssertTrait;
1212
use Kiboko\Component\PHPUnitExtension\PipelineRunner;
1313
use Kiboko\Contract\Pipeline\PipelineRunnerInterface;
14-
use Kiboko\Magento\V2_3\Client;
15-
use Kiboko\Magento\V2_3\Model\SalesDataInvoiceInterface;
16-
use Kiboko\Magento\V2_3\Model\SalesDataInvoiceSearchResultInterface;
14+
use Kiboko\Magento\Client;
15+
use Kiboko\Magento\Model\SalesDataInvoiceInterface;
16+
use Kiboko\Magento\Model\SalesDataInvoiceSearchResultInterface;
1717
use PHPUnit\Framework\TestCase;
1818
use Psr\Log\NullLogger;
1919

@@ -31,7 +31,7 @@ public function testIsSuccessful(): void
3131
$client = $this->createMock(Client::class);
3232
$client
3333
->expects($this->once())
34-
->method('salesInvoiceRepositoryV1GetListGet')
34+
->method('getV1Invoices')
3535
->willReturn(
3636
(new SalesDataInvoiceSearchResultInterface())
3737
->setItems([

0 commit comments

Comments
 (0)