Definition at line 11 of file StoreTest.php.
◆ getConditionDataProvider()
| getConditionDataProvider |
( |
| ) |
|
- Returns
- array
Definition at line 59 of file StoreTest.php.
63 [
null, \Magento\Backend\Block\Widget\Grid\Column\Filter\Store::ALL_STORE_VIEWS],
65 [[
'null' =>
true],
'_deleted_'],
◆ setUp()
Definition at line 28 of file StoreTest.php.
30 $this->context = $this->createMock(\
Magento\Backend\Block\Context::class);
31 $this->helper = $this->createMock(\
Magento\Framework\DB\Helper::class);
32 $this->store = $this->createMock(\
Magento\Store\Model\System\Store::class);
34 $this->objectManagerHelper =
new ObjectManagerHelper($this);
35 $this->store = $this->objectManagerHelper->getObject(
36 \
Magento\Backend\Block\Widget\Grid\Column\Filter\Store::class,
38 'context' => $this->context,
39 'resourceHelper' => $this->helper,
40 'systemStore' => $this->store
◆ testGetCondition()
| testGetCondition |
( |
|
$expectedCondition, |
|
|
|
$value |
|
) |
| |
- Parameters
-
| null | array | $expectedCondition | |
| null | int | string | $value | @dataProvider getConditionDataProvider |
Definition at line 50 of file StoreTest.php.
52 $this->store->setValue(
$value);
53 $this->assertSame($expectedCondition, $this->store->getCondition());
◆ $context
◆ $helper
◆ $object
◆ $objectManagerHelper
◆ $store
The documentation for this class was generated from the following file:
- vendor/magento/module-backend/Test/Unit/Block/Widget/Grid/Column/Filter/StoreTest.php