Skip to content

Commit ad88653

Browse files
author
Stanislav Idolov
committed
ENGCOM-2772: Catalog: Add unit tests for Cron classes #17561
1 parent fdcfdcc commit ad88653

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/Catalog/Test/Unit/Cron/DeleteAbandonedStoreFlatTablesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
/**
1414
* @covers \Magento\Catalog\Cron\DeleteAbandonedStoreFlatTables
1515
*/
16-
class AvailabilityCheckerTest extends \PHPUnit\Framework\TestCase
16+
class DeleteAbandonedStoreFlatTablesTest extends \PHPUnit\Framework\TestCase
1717
{
1818
/**
1919
* Testable Object

app/code/Magento/Catalog/Test/Unit/Cron/DeleteOutdatedPriceValuesTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ public function testExecute()
9898
$this->attributeMock->expects($this->once())->method('getId')->willReturn($attributeId);
9999
$this->attributeMock->expects($this->once())->method('getBackend')->willReturn($this->attributeBackendMock);
100100
$this->attributeBackendMock->expects($this->once())->method('getTable')->willReturn($table);
101-
$this->resourceConnectionMock->expects($this->once())->method('getConnection')->willReturn($this->dbAdapterMock);
101+
$this->resourceConnectionMock->expects($this->once())
102+
->method('getConnection')
103+
->willReturn($this->dbAdapterMock);
102104
$this->dbAdapterMock->expects($this->exactly(2))->method('quoteInto')->willReturnMap([
103105
['attribute_id = ?', $attributeId, null, null, $conditions[0]],
104106
['store_id != ?', Store::DEFAULT_STORE_ID, null, null, $conditions[1]],

0 commit comments

Comments
 (0)