Skip to content

Commit

Permalink
PBC-3241: Integration [3]
Browse files Browse the repository at this point in the history
  • Loading branch information
pushokwhite committed Jan 11, 2024
1 parent fc832aa commit 5c53f29
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

use Codeception\Test\Unit;
use Generated\Shared\Transfer\ConfigureTaxAppTransfer;
use Generated\Shared\Transfer\DeleteTaxAppTransfer;
use Generated\Shared\Transfer\MessageAttributesTransfer;
use Generated\Shared\Transfer\StoreTransfer;
use PyzTest\Zed\MessageBroker\TaxAppCommunicationTester;

/**
Expand Down Expand Up @@ -55,6 +55,7 @@ public function testConfigureTaxAppMessageIsSuccessfullyHandled(): void
MessageAttributesTransfer::STORE_REFERENCE => static::STORE_REFERENCE,
], [
ConfigureTaxAppTransfer::VENDOR_CODE => static::VENDOR_CODE,
ConfigureTaxAppTransfer::IS_ACTIVE => true,
]);

// Act
Expand All @@ -73,12 +74,12 @@ public function testDeleteTaxAppMessageIsSuccessfullyHandled(): void
$storeTransfer = $this->tester->getAllowedStore();
$this->tester->setStoreReferenceData([$storeTransfer->getName() => static::STORE_REFERENCE]);

$this->createDummyTaxAppConfig($storeTransfer);
$this->createDummyTaxAppConfig();

$deleteTaxAppTransfer = $this->tester->buildDeleteTaxAppTransfer([
MessageAttributesTransfer::STORE_REFERENCE => static::STORE_REFERENCE,
], [
ConfigureTaxAppTransfer::VENDOR_CODE => static::VENDOR_CODE,
DeleteTaxAppTransfer::VENDOR_CODE => static::VENDOR_CODE,
]);

// Act
Expand All @@ -89,16 +90,15 @@ public function testDeleteTaxAppMessageIsSuccessfullyHandled(): void
}

/**
* @param \Generated\Shared\Transfer\StoreTransfer $storeTransfer
*
* @return void
*/
protected function createDummyTaxAppConfig(StoreTransfer $storeTransfer): void
protected function createDummyTaxAppConfig(): void
{
$this->tester->handleTaxAppMessage(
$this->tester->buildConfigureTaxAppTransfer([
MessageAttributesTransfer::STORE_REFERENCE => static::STORE_REFERENCE,
ConfigureTaxAppTransfer::VENDOR_CODE => static::VENDOR_CODE,
ConfigureTaxAppTransfer::IS_ACTIVE => true,
]),
);
}
Expand Down

0 comments on commit 5c53f29

Please sign in to comment.