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
magento2-base
dev
tests
integration
testsuite
Magento
Framework
Session
Config
Validator
CookiePathValidatorTest.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Framework\Session\Config\Validator
;
9
10
class
CookiePathValidatorTest
extends
\PHPUnit\Framework\TestCase
11
{
13
private
$model;
14
15
public
function
setUp
()
16
{
17
$objectManager
=
\Magento\TestFramework\Helper\Bootstrap::getObjectManager
();
18
$this->model =
$objectManager
->create(\
Magento
\Framework\
Session
\
Config
\
Validator
\CookiePathValidator::class);
19
}
20
21
public
function
testNoLeadingSlash
()
22
{
23
$path
=
'path'
;
24
$this->assertFalse($this->model->isValid(
$path
));
25
}
26
27
public
function
testInvalidPath
()
28
{
29
$path
=
'/path?query=query'
;
30
$this->assertFalse($this->model->isValid(
$path
));
31
}
32
33
public
function
testValidPath
()
34
{
35
$path
=
'/'
;
36
$this->assertTrue($this->model->isValid(
$path
));
37
}
38
}
$objectManager
$objectManager
Definition:
bootstrap.php:17
Magento\Customer\Model\Metadata\Validator\CookiePathValidatorTest
Definition:
CookiePathValidatorTest.php:10
Magento\Framework\Session\Config\Validator
Definition:
CookieDomainValidator.php:7
Magento\Customer\Model\Metadata\Validator\CookiePathValidatorTest\testInvalidPath
testInvalidPath()
Definition:
CookiePathValidatorTest.php:27
Magento\Customer\Model\Session
Definition:
Session.php:22
Magento\Customer\Model\Metadata\Validator\CookiePathValidatorTest\setUp
setUp()
Definition:
CookiePathValidatorTest.php:15
Magento\Customer\Model\Metadata\Validator\CookiePathValidatorTest\testNoLeadingSlash
testNoLeadingSlash()
Definition:
CookiePathValidatorTest.php:21
Magento\Eav\Model\Entity\Attribute\Config
Definition:
Config.php:16
Magento\Customer\Model\Metadata\Validator\CookiePathValidatorTest\testValidPath
testValidPath()
Definition:
CookiePathValidatorTest.php:33
Magento
Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricing\Validator
Definition:
TierPrice.php:6
$path
$path
Definition:
import_with_filesystem_images.php:14
Magento\TestFramework\Helper\Bootstrap\getObjectManager
static getObjectManager()
Definition:
Bootstrap.php:125