mageos-magento2 4806b67a1eff
2026-07-12 11:17 UTC · commit on GitHub
13,937tests
25failing
0new vs previous run
644skipped
05:50:39test time (sum)
Jobs
Failing tests (25)
deterministic 1.247s
@magentoDataFixture Magento/Bundle/_files/bundle_product_with_dynamic_price.php
Magento\Bundle\Model\ProductTest::testShouldUpdateBundleStockStatusIfChildProductsStockStatusChanged with data set "all options are required"
Failed asserting that false is true.
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ProductTest.php:312
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ProductTest.php:273–297
<?php
*/
#[DataProvider('shouldUpdateBundleStockStatusIfChildProductsStockStatusChangedDataProvider')]
public function testShouldUpdateBundleStockStatusIfChildProductsStockStatusChanged(
bool $isOption1Required,
bool $isOption2Required,
array $outOfStockConfig,
array $inStockConfig
): void {
$sku = 'bundle_product_with_dynamic_price';
/** @var ProductRepositoryInterface $productRepository */
$productRepository = $this->objectManager->get(ProductRepositoryInterface::class);
/** @var ProductInterface $product */
$product = $productRepository->get($sku, true, null, true);
$extension = $product->getExtensionAttributes();
$options = $extension->getBundleProductOptions();
$options[0]->setRequired($isOption1Required);
$options[1]->setRequired($isOption2Required);
$extension->setBundleProductOptions($options);
$stockItem = $extension->getStockItem();
$stockItem->setUseConfigManageStock(1);
$product->setExtensionAttributes($extension);
$productRepository->save($product);
$stockItem = $this->getStockItem((int) $product->getId());
$this->assertNotNull($stockItem);
deterministic 11.54s
Magento\Bundle\Model\ResourceModel\Indexer\PriceTest::testBundleDynamicPriceWhenShowOutOfStockIsDisabled
TypeError: array_intersect_key(): Argument #2 must be of type array, null given
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ResourceModel/Indexer/PriceTest.php:157
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ResourceModel/Indexer/PriceTest.php:84
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ResourceModel/Indexer/PriceTest.php:80–104
<?php
DataFixture(BundleProductFixture::class, ['_options' => ['$opt2_1$', '$opt2_2$']], 'bundle2'),
]
public function testBundleDynamicPriceWhenShowOutOfStockIsDisabled(): void
{
$this->assertPriceData([
// bundle1: required option1 (product1) + required option2 (product2, product3)
// bundle1 is in stock: product3 is out of stock, but product2 is in stock in option2
// expected: the price range includes only available selections
'bundle1' => [
'min_price' => 13,
'max_price' => 13
],
// bundle2: required option1 (product1) + required option2 (product3, product4)
// bundle2 is out of stock: both product3 and product4 are out of stock
// expected: no price data
'bundle2' => null
]);
}
#[
DbIsolation(false),
Config('cataloginventory/options/show_out_of_stock', 1, 'store'),
DataFixture(ProductFixture::class, ['price' => 10], 'product1'),
DataFixture(ProductFixture::class, ['price' => 3], 'product2'),
DataFixture(ProductFixture::class, ['price' => 5, 'stock_item' => ['qty' => 0]], 'product3'),
deterministic 2.393s
Magento\Bundle\Model\ResourceModel\Indexer\StockTest::testReindexRow with data set #0
Failed asserting that false matches expected true.
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ResourceModel/Indexer/StockTest.php:142
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ResourceModel/Indexer/StockTest.php:127–151
<?php
*/
#[DataProvider('reindexRowDataProvider')]
public function testReindexRow(array $stockItems, bool $expectedStockStatus): void
{
$productRepository = Bootstrap::getObjectManager()->get(ProductRepositoryInterface::class);
foreach ($stockItems as $sku => $stockItem) {
$child = $productRepository->get($sku);
$child->setStockData($stockItem);
$productRepository->save($child);
}
$bundle = $productRepository->get('bundle1');
$this->processor->reindexRow($bundle->getId());
$stockStatusResource = Bootstrap::getObjectManager()->get(StockStatusResource::class);
$stockStatus = $stockStatusResource->getProductsStockStatuses($bundle->getId(), 0);
self::assertEquals($expectedStockStatus, (bool) $stockStatus[$bundle->getId()]);
}
public static function reindexRowDataProvider(): array
{
return [
[
[
'simple1' => ['manage_stock' => true, 'backorders' => false, 'qty' => 2],
'simple2' => ['manage_stock' => true, 'backorders' => false, 'qty' => 2],
deterministic 1.984s
Magento\Bundle\Model\ResourceModel\Indexer\StockTest::testReindexRow with data set #1
Failed asserting that false matches expected true.
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ResourceModel/Indexer/StockTest.php:142
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ResourceModel/Indexer/StockTest.php:127–151
<?php
*/
#[DataProvider('reindexRowDataProvider')]
public function testReindexRow(array $stockItems, bool $expectedStockStatus): void
{
$productRepository = Bootstrap::getObjectManager()->get(ProductRepositoryInterface::class);
foreach ($stockItems as $sku => $stockItem) {
$child = $productRepository->get($sku);
$child->setStockData($stockItem);
$productRepository->save($child);
}
$bundle = $productRepository->get('bundle1');
$this->processor->reindexRow($bundle->getId());
$stockStatusResource = Bootstrap::getObjectManager()->get(StockStatusResource::class);
$stockStatus = $stockStatusResource->getProductsStockStatuses($bundle->getId(), 0);
self::assertEquals($expectedStockStatus, (bool) $stockStatus[$bundle->getId()]);
}
public static function reindexRowDataProvider(): array
{
return [
[
[
'simple1' => ['manage_stock' => true, 'backorders' => false, 'qty' => 2],
'simple2' => ['manage_stock' => true, 'backorders' => false, 'qty' => 2],
deterministic 1.895s
Magento\Bundle\Model\ResourceModel\Indexer\StockTest::testReindexRow with data set #4
Failed asserting that false matches expected true.
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ResourceModel/Indexer/StockTest.php:142
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ResourceModel/Indexer/StockTest.php:127–151
<?php
*/
#[DataProvider('reindexRowDataProvider')]
public function testReindexRow(array $stockItems, bool $expectedStockStatus): void
{
$productRepository = Bootstrap::getObjectManager()->get(ProductRepositoryInterface::class);
foreach ($stockItems as $sku => $stockItem) {
$child = $productRepository->get($sku);
$child->setStockData($stockItem);
$productRepository->save($child);
}
$bundle = $productRepository->get('bundle1');
$this->processor->reindexRow($bundle->getId());
$stockStatusResource = Bootstrap::getObjectManager()->get(StockStatusResource::class);
$stockStatus = $stockStatusResource->getProductsStockStatuses($bundle->getId(), 0);
self::assertEquals($expectedStockStatus, (bool) $stockStatus[$bundle->getId()]);
}
public static function reindexRowDataProvider(): array
{
return [
[
[
'simple1' => ['manage_stock' => true, 'backorders' => false, 'qty' => 2],
'simple2' => ['manage_stock' => true, 'backorders' => false, 'qty' => 2],
deterministic 2.056s
Magento\Bundle\Model\ResourceModel\Indexer\StockTest::testReindexRow with data set #5
Failed asserting that false matches expected true.
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ResourceModel/Indexer/StockTest.php:142
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ResourceModel/Indexer/StockTest.php:127–151
<?php
*/
#[DataProvider('reindexRowDataProvider')]
public function testReindexRow(array $stockItems, bool $expectedStockStatus): void
{
$productRepository = Bootstrap::getObjectManager()->get(ProductRepositoryInterface::class);
foreach ($stockItems as $sku => $stockItem) {
$child = $productRepository->get($sku);
$child->setStockData($stockItem);
$productRepository->save($child);
}
$bundle = $productRepository->get('bundle1');
$this->processor->reindexRow($bundle->getId());
$stockStatusResource = Bootstrap::getObjectManager()->get(StockStatusResource::class);
$stockStatus = $stockStatusResource->getProductsStockStatuses($bundle->getId(), 0);
self::assertEquals($expectedStockStatus, (bool) $stockStatus[$bundle->getId()]);
}
public static function reindexRowDataProvider(): array
{
return [
[
[
'simple1' => ['manage_stock' => true, 'backorders' => false, 'qty' => 2],
'simple2' => ['manage_stock' => true, 'backorders' => false, 'qty' => 2],
deterministic 1.609s
Magento\Bundle\Model\ResourceModel\Indexer\StockTest::testReindexRow with data set #6
Failed asserting that false matches expected true.
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ResourceModel/Indexer/StockTest.php:142
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Bundle/Model/ResourceModel/Indexer/StockTest.php:127–151
<?php
*/
#[DataProvider('reindexRowDataProvider')]
public function testReindexRow(array $stockItems, bool $expectedStockStatus): void
{
$productRepository = Bootstrap::getObjectManager()->get(ProductRepositoryInterface::class);
foreach ($stockItems as $sku => $stockItem) {
$child = $productRepository->get($sku);
$child->setStockData($stockItem);
$productRepository->save($child);
}
$bundle = $productRepository->get('bundle1');
$this->processor->reindexRow($bundle->getId());
$stockStatusResource = Bootstrap::getObjectManager()->get(StockStatusResource::class);
$stockStatus = $stockStatusResource->getProductsStockStatuses($bundle->getId(), 0);
self::assertEquals($expectedStockStatus, (bool) $stockStatus[$bundle->getId()]);
}
public static function reindexRowDataProvider(): array
{
return [
[
[
'simple1' => ['manage_stock' => true, 'backorders' => false, 'qty' => 2],
'simple2' => ['manage_stock' => true, 'backorders' => false, 'qty' => 2],
deterministic 1.692s
Magento\BundleImportExport\Model\Import\Product\Type\BundleTest::testShouldUpdateBundleStockStatusIfChildProductsStockStatusChanged with data set "all options are optional"
Failed asserting that false is true.
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/BundleImportExport/Model/Import/Product/Type/BundleTest.php:338
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/BundleImportExport/Model/Import/Product/Type/BundleTest.php:310–334
<?php
*/
#[DataProvider('shouldUpdateBundleStockStatusIfChildProductsStockStatusChangedDataProvider')]
public function testShouldUpdateBundleStockStatusIfChildProductsStockStatusChanged(
bool $isOption1Required,
bool $isOption2Required,
string $outOfStockImportFile,
string $inStockImportFile
): void {
// import data from CSV file
$pathToFile = __DIR__ . '/../../_files/import_bundle.csv';
$errors = $this->doImport($pathToFile, Import::BEHAVIOR_APPEND);
$this->assertEquals(0, $errors->getErrorsCount());
$this->importedProductSkus = ['Simple 1', 'Simple 2', 'Simple 3', 'Bundle 1'];
$sku = 'Bundle 1';
/** @var ProductRepositoryInterface $productRepository */
$productRepository = $this->objectManager->get(ProductRepositoryInterface::class);
/** @var ProductInterface $product */
$product = $productRepository->get($sku, true, null, true);
$options = $product->getExtensionAttributes()->getBundleProductOptions();
$options[0]->setRequired($isOption1Required);
$options[1]->setRequired($isOption2Required);
$extension = $product->getExtensionAttributes();
$extension->setBundleProductOptions($options);
$product->setExtensionAttributes($extension);
$productRepository->save($product);
deterministic 2.261s
Magento\BundleImportExport\Model\Import\Product\Type\BundleTest::testShouldUpdateBundleStockStatusIfChildProductsStockStatusChanged with data set "all options are required"
Failed asserting that false is true.
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/BundleImportExport/Model/Import/Product/Type/BundleTest.php:338
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/BundleImportExport/Model/Import/Product/Type/BundleTest.php:310–334
<?php
*/
#[DataProvider('shouldUpdateBundleStockStatusIfChildProductsStockStatusChangedDataProvider')]
public function testShouldUpdateBundleStockStatusIfChildProductsStockStatusChanged(
bool $isOption1Required,
bool $isOption2Required,
string $outOfStockImportFile,
string $inStockImportFile
): void {
// import data from CSV file
$pathToFile = __DIR__ . '/../../_files/import_bundle.csv';
$errors = $this->doImport($pathToFile, Import::BEHAVIOR_APPEND);
$this->assertEquals(0, $errors->getErrorsCount());
$this->importedProductSkus = ['Simple 1', 'Simple 2', 'Simple 3', 'Bundle 1'];
$sku = 'Bundle 1';
/** @var ProductRepositoryInterface $productRepository */
$productRepository = $this->objectManager->get(ProductRepositoryInterface::class);
/** @var ProductInterface $product */
$product = $productRepository->get($sku, true, null, true);
$options = $product->getExtensionAttributes()->getBundleProductOptions();
$options[0]->setRequired($isOption1Required);
$options[1]->setRequired($isOption2Required);
$extension = $product->getExtensionAttributes();
$extension->setBundleProductOptions($options);
$product->setExtensionAttributes($extension);
$productRepository->save($product);
deterministic 0.097s
Magento\Framework\HTTP\AsyncClientInterfaceTest::testRequest
Magento\Framework\HTTP\AsyncClient\HttpException: cURL error 60: SSL certificate OpenSSL verify result: unable to get local issuer certificate (20) (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://adobe.com
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/HTTP/AsyncClient/GuzzleWrapDeferred.php:88
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/HTTP/AsyncClient/GuzzleWrapDeferred.php:104
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Framework/HTTP/AsyncClientInterfaceTest.php:41
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Framework/HTTP/AsyncClientInterfaceTest.php:34–58
<?php
* Making a request.
*/
public function testRequest(): void
{
$request = new Request('https://adobe.com', Request::METHOD_GET, [], null);
$response1 = $this->client->request($request);
$response2 = $this->client->request($request);
$this->assertEquals(200, $response2->get()->getStatusCode());
$this->assertEquals(200, $response1->get()->getStatusCode());
$this->assertStringContainsString(
'Adobe: Creative, marketing and document management solutions',
$response1->get()->getBody()
);
$this->assertStringContainsString(
'Adobe: Creative, marketing and document management solutions',
$response2->get()->getBody()
);
$date1 = new \DateTime($response1->get()->getHeaders()['date']);
$date2 = new \DateTime($response2->get()->getHeaders()['date']);
$this->assertLessThanOrEqual(1, abs((int)$date1->format('U') - (int)$date2->format('U')));
}
/**
* Test cancelling a request.
*
deterministic 0.185s
Magento\Framework\MessageQueue\TopologyTest::testTopologyInstallation with data set "magento-topic-based-exchange1"
Invalid exchange configuration: magento-topic-based-exchange1
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
'name' => 'magento-topic-based-exchange1'
- 'vhost' => '/'
+ 'vhost' => 'mageos_master_t1'
'type' => 'topic'
'durable' => true
'auto_delete' => false
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Framework/MessageQueue/TopologyTest.php:80/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Framework/MessageQueue/TopologyTest.php:63–87
<?php
*/
#[DataProvider('exchangeDataProvider')]
public function testTopologyInstallation(array $expectedConfig, array $bindingConfig): void
{
if ($this->connectionType === 'stomp') {
$this->markTestSkipped('AMQP test skipped because STOMP connection is available.
This test is AMQP-specific.');
}
$name = $expectedConfig['name'];
$this->assertArrayHasKey($name, $this->declaredExchanges);
unset(
$this->declaredExchanges[$name]['message_stats'],
$this->declaredExchanges[$name]['user_who_performed_action'],
$this->declaredExchanges[$name]['policy']
);
$this->assertEquals(
$expectedConfig,
$this->declaredExchanges[$name],
'Invalid exchange configuration: ' . $name
);
$bindings = $this->helper->getExchangeBindings($name);
$bindings = array_map(static function ($value) {
deterministic 0.077s
Magento\Framework\MessageQueue\TopologyTest::testTopologyInstallation with data set "magento-topic-based-exchange2"
Invalid exchange configuration: magento-topic-based-exchange2
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
'name' => 'magento-topic-based-exchange2'
- 'vhost' => '/'
+ 'vhost' => 'mageos_master_t1'
'type' => 'topic'
'durable' => true
'auto_delete' => false
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Framework/MessageQueue/TopologyTest.php:80/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Framework/MessageQueue/TopologyTest.php:63–87
<?php
*/
#[DataProvider('exchangeDataProvider')]
public function testTopologyInstallation(array $expectedConfig, array $bindingConfig): void
{
if ($this->connectionType === 'stomp') {
$this->markTestSkipped('AMQP test skipped because STOMP connection is available.
This test is AMQP-specific.');
}
$name = $expectedConfig['name'];
$this->assertArrayHasKey($name, $this->declaredExchanges);
unset(
$this->declaredExchanges[$name]['message_stats'],
$this->declaredExchanges[$name]['user_who_performed_action'],
$this->declaredExchanges[$name]['policy']
);
$this->assertEquals(
$expectedConfig,
$this->declaredExchanges[$name],
'Invalid exchange configuration: ' . $name
);
$bindings = $this->helper->getExchangeBindings($name);
$bindings = array_map(static function ($value) {
deterministic 0.056s
Magento\Framework\MessageQueue\TopologyTest::testTopologyInstallation with data set "magento-topic-based-exchange3"
Failed asserting that an array has the key 'magento-topic-based-exchange3'.
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Framework/MessageQueue/TopologyTest.php:73
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Framework/MessageQueue/TopologyTest.php:63–87
<?php
*/
#[DataProvider('exchangeDataProvider')]
public function testTopologyInstallation(array $expectedConfig, array $bindingConfig): void
{
if ($this->connectionType === 'stomp') {
$this->markTestSkipped('AMQP test skipped because STOMP connection is available.
This test is AMQP-specific.');
}
$name = $expectedConfig['name'];
$this->assertArrayHasKey($name, $this->declaredExchanges);
unset(
$this->declaredExchanges[$name]['message_stats'],
$this->declaredExchanges[$name]['user_who_performed_action'],
$this->declaredExchanges[$name]['policy']
);
$this->assertEquals(
$expectedConfig,
$this->declaredExchanges[$name],
'Invalid exchange configuration: ' . $name
);
$bindings = $this->helper->getExchangeBindings($name);
$bindings = array_map(static function ($value) {
deterministic 0.052s
Magento\Framework\MessageQueue\TopologyTest::testTopologyInstallation with data set "magento-topic-based-exchange4"
Invalid exchange configuration: magento-topic-based-exchange4
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
'name' => 'magento-topic-based-exchange4'
- 'vhost' => '/'
+ 'vhost' => 'mageos_master_t1'
'type' => 'topic'
'durable' => true
'auto_delete' => false
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Framework/MessageQueue/TopologyTest.php:80/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Framework/MessageQueue/TopologyTest.php:63–87
<?php
*/
#[DataProvider('exchangeDataProvider')]
public function testTopologyInstallation(array $expectedConfig, array $bindingConfig): void
{
if ($this->connectionType === 'stomp') {
$this->markTestSkipped('AMQP test skipped because STOMP connection is available.
This test is AMQP-specific.');
}
$name = $expectedConfig['name'];
$this->assertArrayHasKey($name, $this->declaredExchanges);
unset(
$this->declaredExchanges[$name]['message_stats'],
$this->declaredExchanges[$name]['user_who_performed_action'],
$this->declaredExchanges[$name]['policy']
);
$this->assertEquals(
$expectedConfig,
$this->declaredExchanges[$name],
'Invalid exchange configuration: ' . $name
);
$bindings = $this->helper->getExchangeBindings($name);
$bindings = array_map(static function ($value) {
deterministic 35.225s
Magento\Framework\MessageQueue\UseCase\MixSyncAndAsyncSingleQueueTest::testMixSyncAndAsyncSingleQueue
Magento\Framework\Exception\LocalizedException: The RPC (Remote Procedure Call) failed. The connection timed out after 30. Please try again later.
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/Amqp/Exchange.php:120
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/MessageQueue/Rpc/Publisher.php:114
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/MessageQueue/PublisherPool.php:89
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Framework/MessageQueue/UseCase/MixSyncAndAsyncSingleQueueTest.php:72
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Framework/MessageQueue/UseCase/MixSyncAndAsyncSingleQueueTest.php:52–76
<?php
}
public function testMixSyncAndAsyncSingleQueue()
{
if ($this->connectionType === 'stomp') {
$this->markTestSkipped('AMQP test skipped because STOMP connection is available.
This test is AMQP-specific.');
}
$this->msgObject = $this->objectManager->create(AsyncTestData::class); // @phpstan-ignore-line
// Publish asynchronous messages
foreach ($this->messages as $item) {
$this->msgObject->setValue($item);
$this->msgObject->setTextFilePath($this->logFilePath);
$this->publisher->publish('multi.topic.queue.topic.c', $this->msgObject);
}
// Publish synchronous message to the same queue
$input = 'Input value';
$response = $this->publisher->publish('sync.topic.for.mixed.sync.and.async.queue', $input);
$this->assertEquals($input . ' processed by RPC handler', $response);
$this->waitForAsynchronousResult(count($this->messages), $this->logFilePath);
deterministic 4.98s
@magentoDataFixture Magento/GraphQl/Catalog/_files/simple_product.php
@magentoDataFixture Magento/GraphQl/Quote/_files/guest/create_empty_cart.php
@magentoDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
@magentoDataFixture Magento/GraphQl/Quote/_files/set_new_shipping_address.php
@magentoDataFixture Magento/GraphQl/Quote/_files/set_new_billing_address.php
@magentoDataFixture Magento/GraphQl/Quote/_files/set_flatrate_shipping_method.php
@magentoDataFixture Magento/GraphQl/Quote/_files/set_checkmo_payment_method.php
@magentoDataFixture Magento/GraphQl/Quote/_files/guest/set_guest_email.php
Magento\GraphQl\App\GraphQlCheckoutMutationsStateTest::testPlaceOrder
1 objects changed state since constructed. Details: array (
'Magento\\Elasticsearch\\Model\\Adapter\\BatchDataMapper\\ProductDataMapper' =>
array (
'objectClassBefore' => 'Magento\\Elasticsearch\\Model\\Adapter\\BatchDataMapper\\ProductDataMapper',
'properties' =>
array (
'attributeOptionsCache' =>
array (
1 =>
array (
'before' => NULL,
'after' =>
array (
74 =>
array (
),
97 =>
array (
0 =>
array (
'value' => 1,
'label' => 'Magento\\Framework\\Phrase',
),
1 =>
array (
'value' => 2,
'label' => 'Magento\\Framework\\Phrase',
),
),
136 =>
array (
0 =>
array (
'value' => '0',
'label' => 'Magento\\Framework\\Phrase',
),
1 =>
array (
'value' => '2',
'label' => 'Taxable Goods',
),
),
73 =>
array (
),
121 =>
array (
),
),
),
),
),
'objectIdBefore' => 126191,
),
)
Failed asserting that an array is empty.
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/GraphQl/App/State/GraphQlStateDiff.php:206
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/GraphQl/App/State/GraphQlStateDiff.php:147
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/GraphQl/App/GraphQlCheckoutMutationsStateTest.php:326/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/GraphQl/App/GraphQlCheckoutMutationsStateTest.php:320–344
<?php
* @magentoDataFixture Magento/GraphQl/Quote/_files/guest/set_guest_email.php
*/
public function testPlaceOrder(): void
{
$cartId = $this->graphQlStateDiff->getCartIdHash('test_quote');
$query = $this->getPlaceOrderQuery();
$this->graphQlStateDiff->testState(
$query,
['cartId' => $cartId],
[],
[],
'placeOrder',
'"data":{"placeOrder":',
$this
);
}
private function getBillingAddressQuery(): string
{
return <<<'QUERY'
mutation($cartId: String!) {
setBillingAddressOnCart(
input: {
cart_id: $cartId
billing_address: {
deterministic 0.046s
Magento\Sales\Helper\AdminTest::testEscapeHtmlWithLinks with data set #5
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<a href="%5C"#%5C"">Foo</a>'
+'<a href="\"#\"">Foo</a>'
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Sales/Helper/AdminTest.php:41
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Sales/Helper/AdminTest.php:36–60
<?php
*/
#[DataProvider('escapeHtmlWithLinksDataProvider')]
public function testEscapeHtmlWithLinks(string $data, string $expected, $allowedTags = null): void
{
$actual = $this->helper->escapeHtmlWithLinks($data, $allowedTags);
$this->assertEquals($expected, $actual);
}
/**
* @return array
*/
public static function escapeHtmlWithLinksDataProvider(): array
{
return [
[
'<a>some text in tags</a>',
'<a>some text in tags</a>',
'allowedTags' => null,
],
[
// @codingStandardsIgnoreStart
'Authorized amount of €30.00. Transaction ID: "<a target="_blank" href="https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_view-a-trans&id=123456789QWERTY">123456789QWERTY</a>"',
'Authorized amount of €30.00. Transaction ID: "<a href="https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_view-a-trans&id=123456789QWERTY">123456789QWERTY</a>"',
// @codingStandardsIgnoreEnd
'allowedTags' => ['b', 'br', 'strong', 'i', 'u', 'a'],
deterministic 0.052s
Magento\Sales\Helper\AdminTest::testEscapeHtmlWithLinks with data set #6
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'...m?foo=1&bar=2&baz%5Bname%5D=BAZ">Foo</a>'
+'...m?foo=1&bar=2&baz[name]=BAZ">Foo</a>'
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Sales/Helper/AdminTest.php:41
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Sales/Helper/AdminTest.php:36–60
<?php
*/
#[DataProvider('escapeHtmlWithLinksDataProvider')]
public function testEscapeHtmlWithLinks(string $data, string $expected, $allowedTags = null): void
{
$actual = $this->helper->escapeHtmlWithLinks($data, $allowedTags);
$this->assertEquals($expected, $actual);
}
/**
* @return array
*/
public static function escapeHtmlWithLinksDataProvider(): array
{
return [
[
'<a>some text in tags</a>',
'<a>some text in tags</a>',
'allowedTags' => null,
],
[
// @codingStandardsIgnoreStart
'Authorized amount of €30.00. Transaction ID: "<a target="_blank" href="https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_view-a-trans&id=123456789QWERTY">123456789QWERTY</a>"',
'Authorized amount of €30.00. Transaction ID: "<a href="https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_view-a-trans&id=123456789QWERTY">123456789QWERTY</a>"',
// @codingStandardsIgnoreEnd
'allowedTags' => ['b', 'br', 'strong', 'i', 'u', 'a'],
context-dependent 1.694s
@magentoDataFixture Magento/ConfigurableProduct/_files/product_configurable.php
Magento\ConfigurableProduct\Model\OptionRepositoryTest::testGetListWithExtensionAttributes
Extension attribute "test_dummy_attribute" was not loaded via join processor
Failed asserting that an array has the key 'test_dummy_attribute'.
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/ConfigurableProduct/Model/OptionRepositoryTest.php:29
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/ConfigurableProduct/Model/OptionRepositoryTest.php:12–36
<?php
* @magentoDbIsolation disabled
*/
public function testGetListWithExtensionAttributes()
{
$objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
$productSku = 'configurable';
/** @var \Magento\ConfigurableProduct\Api\OptionRepositoryInterface $optionRepository */
$optionRepository = $objectManager->create(\Magento\ConfigurableProduct\Api\OptionRepositoryInterface::class);
$options = $optionRepository->getList($productSku);
$this->assertCount(1, $options, "Invalid number of option.");
$this->assertNotNull($options[0]->getExtensionAttributes(), "Extension attributes not loaded");
/** @var \Magento\Eav\Model\Entity\Attribute $joinedEntity */
$joinedEntity = $objectManager->create(\Magento\Eav\Model\Entity\Attribute::class);
$joinedEntity->load($options[0]->getId());
$joinedExtensionAttributeValue = $joinedEntity->getAttributeCode();
$result = $options[0]->getExtensionAttributes()->__toArray();
$this->assertArrayHasKey(
'test_dummy_attribute',
$result,
'Extension attribute "test_dummy_attribute" was not loaded via join processor'
);
$this->assertEquals(
$joinedExtensionAttributeValue,
$result['test_dummy_attribute'] ?? null,
context-dependent 1.252s
Magento\GraphQl\Controller\GraphQlControllerTest::testDispatch
Products array has items
Failed asserting that an array is not empty.
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/GraphQl/Controller/GraphQlControllerTest.php:116
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/GraphQl/Controller/GraphQlControllerTest.php:76–100
<?php
* @return void
*/
public function testDispatch() : void
{
/** @var ProductRepositoryInterface $productRepository */
$productRepository = $this->objectManager->get(ProductRepositoryInterface::class);
/** @var ProductInterface $product */
$product = $productRepository->get('simple1');
$query
= <<<QUERY
{
products(filter: {sku: {eq: "simple1"}})
{
items {
id
name
sku
}
}
}
QUERY;
$postData = [
'query' => $query,
context-dependent 0.43s
@magentoConfigFixture default_store checkout/cart/delete_quote_after -365
@magentoDataFixture Magento/Sales/_files/quotes.php
Magento\Sales\Cron\CleanExpiredQuotesTest::testExecute
Failed asserting that 3 matches expected 2.
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Sales/Cron/CleanExpiredQuotesTest.php:88
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Sales/Cron/CleanExpiredQuotesTest.php:52
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Sales/Cron/CleanExpiredQuotesTest.php:47–71
<?php
* @magentoDataFixture Magento/Sales/_files/quotes.php
*/
public function testExecute()
{
//Initial count - should be equal to stores number.
$this->assertQuotesCount(2);
//Deleting expired quotes
$this->cleanExpiredQuotes->execute();
//Only 1 will be deleted for the store that has all of them expired by config (default_store)
$this->assertQuotesCount(1);
}
/**
* Check if outdated quotes are deleted.
*
* @magentoConfigFixture default_store checkout/cart/delete_quote_after -365
* @magentoDataFixture Magento/Sales/_files/quotes_big_amount.php
*/
public function testExecuteWithBigAmountOfQuotes()
{
//Initial count - should be equal to 1000
$this->assertQuotesCount(6000);
context-dependent 0s
@magentoDataFixture Magento/Sales/_files/invoice_list_different_stores.php
@magentoConfigFixture default/sales_email/general/async_sending 1
@magentoConfigFixture fixture_second_store_store sales_email/invoice/enabled 0
Magento\Sales\Model\InvoiceEmailSenderHandlerTest::testInvoiceEmailSenderExecute
Unable to apply fixture: Magento/Sales/_files/invoice_list_different_stores.php
Caused by
Magento\Framework\DB\Adapter\TableNotFoundException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mageos_master_t2.sequence_invoice_28' doesn't exist, query was: INSERT INTO `sequence_invoice_28` () VALUES ()
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php:754
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php:695
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php:785
/srv/mageos-testing/mageos-master/dev/tests/integration/tmp/sandbox-2-6c9a43d2826411d0c6cc89920865672f92d0e69cf0afcf968c2a8f19276117f2/generated/code/Magento/TestFramework/Db/Adapter/Mysql/Interceptor.php:122
/srv/mageos-testing/mageos-master/vendor/magento/zend-db/library/Zend/Db/Adapter/Abstract.php:576
/srv/mageos-testing/mageos-master/dev/tests/integration/tmp/sandbox-2-6c9a43d2826411d0c6cc89920865672f92d0e69cf0afcf968c2a8f19276117f2/generated/code/Magento/TestFramework/Db/Adapter/Mysql/Interceptor.php:1085
/srv/mageos-testing/mageos-master/app/code/Magento/SalesSequence/Model/Sequence.php:85
/srv/mageos-testing/mageos-master/app/code/Magento/Sales/Model/ResourceModel/EntityAbstract.php:137
/srv/mageos-testing/mageos-master/app/code/Magento/Sales/Model/ResourceModel/Order/Invoice.php:49
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/Model/ResourceModel/Db/AbstractDb.php:393
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/Model/AbstractModel.php:682
/srv/mageos-testing/mageos-master/dev/tests/integration/tmp/sandbox-2-6c9a43d2826411d0c6cc89920865672f92d0e69cf0afcf968c2a8f19276117f2/generated/code/Magento/Sales/Model/Order/Invoice/Interceptor.php:1355
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/DB/Transaction.php:134
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Sales/_files/invoice_list_different_stores.php:137
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Fixture/LegacyDataFixture.php:38
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixtureSetup.php:56
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Annotation/AbstractDataFixture.php:121
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixture.php:37
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/EventManager.php:49
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php:76
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php:46
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/EventManager.php:49
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Event/PhpUnit.php:127
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Event/TestPreprationStartedSubscriber.php:43
Caused by
Zend_Db_Statement_Exception: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mageos_master_t2.sequence_invoice_28' doesn't exist, query was: INSERT INTO `sequence_invoice_28` () VALUES ()
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/DB/Statement/Pdo/Mysql.php:109
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/DB/Statement/Pdo/Mysql.php:89
/srv/mageos-testing/mageos-master/vendor/magento/zend-db/library/Zend/Db/Statement.php:313
/srv/mageos-testing/mageos-master/vendor/magento/zend-db/library/Zend/Db/Adapter/Abstract.php:480
/srv/mageos-testing/mageos-master/vendor/magento/zend-db/library/Zend/Db/Adapter/Pdo/Abstract.php:242
/srv/mageos-testing/mageos-master/li
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Sales/Model/InvoiceEmailSenderHandlerTest.php:77–101
<?php
* @return void
*/
public function testInvoiceEmailSenderExecute(): void
{
$invoiceCollection = clone $this->entityCollection;
$invoiceCollection->addFieldToFilter('send_email', ['eq' => 1]);
$invoiceCollection->addFieldToFilter(InvoiceInterface::EMAIL_SENT, ['null' => true]);
$this->emailSenderHandler->sendEmails();
$this->assertEquals(1, $invoiceCollection->getTotalCount());
}
/**
* @magentoDbIsolation disabled
* @magentoDataFixture Magento/Sales/_files/invoice_with_send_email_flag.php
* @magentoConfigFixture default/sales_email/general/async_sending 1
* @return void
*/
public function testSendEmailsCheckEmailReceived(): void
{
$invoiceCollection = clone $this->entityCollection;
$this->emailSenderHandler->sendEmails();
/** @var InvoiceInterface $invoice */
$invoice = $invoiceCollection->getFirstItem();
$this->assertNotNull($invoice->getId());
$message = $this->transportBuilderMock->getSentMessage();
context-dependent 0s
@magentoDataFixture Magento/Store/_files/second_website_with_store_group_and_store.php
@magentoDataFixture Magento/Sales/_files/order_on_second_website.php
Magento\Sales\Model\Order\Address\RendererTest::testFormatNonDisplayedCompanyField
Unable to apply fixture: Magento/Store/_files/second_website_with_store_group_and_store.php
Caused by
Magento\Framework\Exception\AlreadyExistsException: Store with the same code already exists.
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/Model/ResourceModel/Db/AbstractDb.php:613
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/Model/ResourceModel/Db/AbstractDb.php:394
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/Interception/Interceptor.php:58
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/Interception/Interceptor.php:138
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/Interception/Interceptor.php:153
/srv/mageos-testing/mageos-master/dev/tests/integration/tmp/sandbox-2-6c9a43d2826411d0c6cc89920865672f92d0e69cf0afcf968c2a8f19276117f2/generated/code/Magento/Store/Model/ResourceModel/Store/Interceptor.php:86
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Store/_files/second_website_with_store_group_and_store.php:56
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Fixture/LegacyDataFixture.php:38
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixtureSetup.php:56
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Annotation/AbstractDataFixture.php:121
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixture.php:37
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/EventManager.php:49
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php:76
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php:46
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/EventManager.php:49
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Event/PhpUnit.php:127
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Event/TestPreprationStartedSubscriber.php:43
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Annotation/ExceptionHandler.php:38
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Annotation/AbstractDataFixture.php:123
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Annotation/DataFixture.php:37
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/EventManager.php:49
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php:76
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Event/Transaction.php:46
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/EventManager.php:49
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Event/PhpUnit.php:127
/srv/mageos-testing/mageos-master/dev/tests/integration/framework/Magento/TestFramework/Event/TestPreprationStartedSubscriber.php:43
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Sales/Model/Order/Address/RendererTest.php:123–147
<?php
* @magentoAppIsolation enabled
*/
public function testFormatNonDisplayedCompanyField()
{
$orderFixtureStore = $this->objectManager->create(Order::class)->loadByIncrementId('100000001');
$configData = [
'section' => 'customer',
'website' => $orderFixtureStore->getStore()->getWebsite()->getId(),
'store' => null,
'groups' => [
'address' => [
'fields' => [
'company_show' => ['value' => ''],
],
],
],
];
$configFactory = $this->objectManager->get(Factory::class);
$config = $configFactory->create(['data' => $configData]);
$config->save();
$address = $orderFixtureStore->getBillingAddress();
self::assertStringNotContainsString('Test Company', $this->orderAddressRenderer->format($address, 'html'));
}
/**
context-dependent 2.91s
Magento\Sales\Model\ResourceModel\GridTest::testRefreshBySchedule with data set "Magento\Sales\Model\ResourceModel\Order\Invoice\Grid"
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- 'created_at' => '2026-07-12 10:03:44'
- 'updated_at' => '2026-07-12 10:03:44'
+ 'created_at' => '2026-07-12 09:55:34'
+ 'updated_at' => '2026-07-12 09:55:35'
)
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Sales/Model/ResourceModel/GridTest.php:83
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Sales/Model/ResourceModel/GridTest.php:45–69
<?php
*/
#[DataProvider('gridDataProvider')]
public function testRefreshBySchedule(array $constructorArgs, string $orderIdField)
{
$constructorArgs['orderIdField'] = $constructorArgs['mainTableName'] . '.' . $orderIdField;
$constructorArgs['columns'] = [
$orderIdField => $constructorArgs['orderIdField'],
'created_at' => $constructorArgs['mainTableName'] . '.created_at',
'updated_at' => $constructorArgs['mainTableName'] . '.updated_at',
];
$constructorArgs['notSyncedDataProvider'] = $this->objectManager->get(UpdatedAtListProvider::class);
$grid = $this->objectManager->create(Grid::class, $constructorArgs);
$order = $this->objectManager->create(\Magento\Sales\Model\Order::class)
->loadByIncrementId('100000111');
$connection = $grid->getConnection();
$select = $connection->select()
->from($constructorArgs['mainTableName'], ['created_at', 'updated_at'])
->where($orderIdField, $order->getEntityId());
$data = $connection->fetchRow($select);
$this->assertNotEmpty($data);
//refresh data without cached updated_at
$this->lastUpdateTimeCache->remove($constructorArgs['gridTableName']);
$this->assertEmpty($this->lastUpdateTimeCache->get($constructorArgs['gridTableName']));
context-dependent 8.199s
@magentoDataFixture Magento/Store/_files/store_with_long_name.php
Magento\Sales\Model\ResourceModel\OrderTest::testSaveLongNames
Magento\Framework\DB\Adapter\TableNotFoundException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mageos_master_t2.sequence_order_40' doesn't exist, query was: INSERT INTO `sequence_order_40` () VALUES ()
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php:754
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php:695
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/DB/Adapter/Pdo/Mysql.php:785
/srv/mageos-testing/mageos-master/dev/tests/integration/tmp/sandbox-2-6c9a43d2826411d0c6cc89920865672f92d0e69cf0afcf968c2a8f19276117f2/generated/code/Magento/TestFramework/Db/Adapter/Mysql/Interceptor.php:122
/srv/mageos-testing/mageos-master/vendor/magento/zend-db/library/Zend/Db/Adapter/Abstract.php:576
/srv/mageos-testing/mageos-master/dev/tests/integration/tmp/sandbox-2-6c9a43d2826411d0c6cc89920865672f92d0e69cf0afcf968c2a8f19276117f2/generated/code/Magento/TestFramework/Db/Adapter/Mysql/Interceptor.php:1085
/srv/mageos-testing/mageos-master/app/code/Magento/SalesSequence/Model/Sequence.php:85
/srv/mageos-testing/mageos-master/app/code/Magento/Sales/Model/ResourceModel/EntityAbstract.php:137
/srv/mageos-testing/mageos-master/app/code/Magento/Sales/Model/ResourceModel/Order.php:165
/srv/mageos-testing/mageos-master/lib/internal/Magento/Framework/Model/ResourceModel/Db/AbstractDb.php:393
/srv/mageos-testing/mageos-master/app/code/Magento/Sales/Model/ResourceModel/Order.php:175
/srv/mageos-testing/mageos-master/dev/tests/integration/tmp/sandbox-2-6c9a43d2826411d0c6cc89920865672f92d0e69cf0afcf968c2a8f19276117f2/generated/code/Magento/Sales/Model/ResourceModel/Order/Interceptor.php:32
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Sales/Model/ResourceModel/OrderTest.php:293
/srv/mageos-testing/mageos-master/dev/tests/integration/testsuite/Magento/Sales/Model/ResourceModel/OrderTest.php:276–300
<?php
* @throws NoSuchEntityException
*/
public function testSaveLongNames(): void
{
$xForwardedFor = str_repeat('x', 255);
$store = $this->storeRepository->get('test_2');
$this->storeManager->setCurrentStore($store->getId());
$eventManager = $this->objectManager->get(ManagerInterface::class);
$eventManager->dispatch('store_add', ['store' => $store]);
$order = $this->objectManager->create(OrderModel::class);
$payment = $this->objectManager->create(Payment::class);
$payment->setMethod('checkmo');
$order->setStoreId($store->getId());
$order->setXForwardedFor($xForwardedFor);
$order->setPayment($payment);
$this->resourceModel->save($order);
$orderRepository = $this->objectManager->create(OrderRepositoryInterface::class);
$order = $orderRepository->get($order->getId());
$this->assertEquals(255, strlen($order->getStoreName()));
$this->assertEquals(255, strlen($order->getXForwardedFor()));
Slowest tests