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-google-adwords
Test
Unit
Model
Config
Source
ValueTypeTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\GoogleAdwords\Test\Unit\Model\Config\Source
;
7
8
class
ValueTypeTest
extends
\PHPUnit\Framework\TestCase
9
{
13
protected
$_model
;
14
15
protected
function
setUp
()
16
{
17
$objectManager
= new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
18
$this->_model =
$objectManager
->getObject(\
Magento
\GoogleAdwords\Model\Config\Source\ValueType::class, []);
19
}
20
21
public
function
testToOptionArray
()
22
{
23
$this->assertEquals(
24
[
25
[
26
'value'
=> \
Magento
\GoogleAdwords\Helper\Data::CONVERSION_VALUE_TYPE_DYNAMIC,
27
'label'
=>
'Dynamic'
,
28
],
29
[
30
'value'
=> \
Magento
\GoogleAdwords\Helper\Data::CONVERSION_VALUE_TYPE_CONSTANT,
31
'label'
=>
'Constant'
32
],
33
],
34
$this->_model->toOptionArray()
35
);
36
}
37
}
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\GoogleAdwords\Test\Unit\Model\Config\Source\ValueTypeTest\setUp
setUp()
Definition:
ValueTypeTest.php:15
Magento\GoogleAdwords\Test\Unit\Model\Config\Source
Definition:
ValueTypeTest.php:6
Magento\GoogleAdwords\Test\Unit\Model\Config\Source\ValueTypeTest\testToOptionArray
testToOptionArray()
Definition:
ValueTypeTest.php:21
Magento
Magento\GoogleAdwords\Test\Unit\Model\Config\Source\ValueTypeTest
Definition:
ValueTypeTest.php:8
Magento\GoogleAdwords\Test\Unit\Model\Config\Source\ValueTypeTest\$_model
$_model
Definition:
ValueTypeTest.php:13