Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-catalog
Test
Unit
Cron
DeleteAbandonedStoreFlatTablesTest.php
Go to the documentation of this file.
1
<?php
6
declare(strict_types=1);
7
8
namespace
Magento\Catalog\Test\Unit\Cron
;
9
10
use
Magento\Catalog\Cron\DeleteAbandonedStoreFlatTables
;
11
use
Magento\Catalog\Helper\Product\Flat\Indexer
;
12
16
class
DeleteAbandonedStoreFlatTablesTest
extends
\PHPUnit\Framework\TestCase
17
{
23
private
$deleteAbandonedStoreFlatTables;
24
28
private
$indexerMock;
29
35
protected
function
setUp
()
36
{
37
$this->indexerMock = $this->createMock(Indexer::class);
38
$this->deleteAbandonedStoreFlatTables =
new
DeleteAbandonedStoreFlatTables
($this->indexerMock);
39
}
40
46
public
function
testExecute
()
47
{
48
$this->indexerMock->expects($this->once())->method(
'deleteAbandonedStoreFlatTables'
);
49
$this->deleteAbandonedStoreFlatTables->execute();
50
}
51
}
Magento\Catalog\Helper\Product\Flat\Indexer
Definition:
Indexer.php:18
Magento\Catalog\Cron\DeleteAbandonedStoreFlatTables
Definition:
DeleteAbandonedStoreFlatTables.php:8
Magento\Catalog\Test\Unit\Cron\DeleteAbandonedStoreFlatTablesTest\testExecute
testExecute()
Definition:
DeleteAbandonedStoreFlatTablesTest.php:46
Magento\Catalog\Test\Unit\Cron
Definition:
DeleteAbandonedStoreFlatTablesTest.php:8
Magento\Catalog\Test\Unit\Cron\DeleteAbandonedStoreFlatTablesTest
Definition:
DeleteAbandonedStoreFlatTablesTest.php:16
Magento\Catalog\Test\Unit\Cron\DeleteAbandonedStoreFlatTablesTest\setUp
setUp()
Definition:
DeleteAbandonedStoreFlatTablesTest.php:35