Definition at line 8 of file DataTest.php.
◆ setUp()
Definition at line 20 of file DataTest.php.
23 $this->_subscriber = $this->_objectManager->get(\
Magento\Newsletter\Model\Subscriber::class);
static getObjectManager()
◆ testGetConfirmationUrl()
testGetConfirmationUrl |
( |
| ) |
|
@magentoAppIsolation enabled
Definition at line 29 of file DataTest.php.
31 $url = $this->_objectManager->get(
32 \
Magento\Newsletter\Helper\Data::class
33 )->getConfirmationUrl($this->_subscriber);
34 $this->assertTrue(strpos(
$url,
'newsletter/subscriber/confirm') > 0);
35 $this->assertFalse(strpos(
$url,
'admin'));
◆ testGetUnsubscribeUrl()
testGetUnsubscribeUrl |
( |
| ) |
|
@magentoAppIsolation enabled
Definition at line 41 of file DataTest.php.
43 $url = $this->_objectManager->get(
44 \
Magento\Newsletter\Helper\Data::class
45 )->getUnsubscribeUrl($this->_subscriber);
46 $this->assertTrue(strpos(
$url,
'newsletter/subscriber/unsubscribe') > 0);
47 $this->assertFalse(strpos(
$url,
'admin'));
◆ $_objectManager
◆ $_subscriber
The documentation for this class was generated from the following file:
- vendor/magento/magento2-base/dev/tests/integration/testsuite/Magento/Newsletter/Helper/DataTest.php