Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
testRetrieve () | |
testRetrieveByEmail () | |
testRetrieveCached () | |
testRetrieveException () | |
testRetrieveEmailException () | |
testRemove () | |
testRemoveByEmail () | |
Data Fields | |
const | CUSTOMER_ID = 1 |
const | CUSTOMER_EMAIL = '[email protected]' |
const | WEBSITE_ID = 1 |
Protected Member Functions | |
setUp () | |
Protected Attributes | |
$_model | |
Test for \Magento\Customer\Model\CustomerRegistry
Definition at line 15 of file CustomerRegistryTest.php.
|
protected |
Initialize SUT
Definition at line 32 of file CustomerRegistryTest.php.
testRemove | ( | ) |
@magentoDataFixture Magento/Customer/_files/customer.php @expectedException \Magento\Framework\Exception\NoSuchEntityException @magentoAppArea adminhtml
Definition at line 107 of file CustomerRegistryTest.php.
testRemoveByEmail | ( | ) |
@magentoDataFixture Magento/Customer/_files/customer.php @expectedException \Magento\Framework\Exception\NoSuchEntityException @magentoAppArea adminhtml
Definition at line 121 of file CustomerRegistryTest.php.
testRetrieve | ( | ) |
@magentoDataFixture Magento/Customer/_files/customer.php
Definition at line 41 of file CustomerRegistryTest.php.
testRetrieveByEmail | ( | ) |
@magentoDataFixture Magento/Customer/_files/customer.php
Definition at line 51 of file CustomerRegistryTest.php.
testRetrieveCached | ( | ) |
@magentoDataFixture Magento/Customer/_files/customer.php @magentoAppArea adminhtml
Definition at line 62 of file CustomerRegistryTest.php.
testRetrieveEmailException | ( | ) |
Definition at line 86 of file CustomerRegistryTest.php.
testRetrieveException | ( | ) |
@expectedException \Magento\Framework\Exception\NoSuchEntityException @expectedExceptionMessage No such entity with customerId = 1
Definition at line 81 of file CustomerRegistryTest.php.
|
protected |
Definition at line 20 of file CustomerRegistryTest.php.
const CUSTOMER_EMAIL = '[email protected]' |
Definition at line 26 of file CustomerRegistryTest.php.
const CUSTOMER_ID = 1 |
#+ Data set in customer fixture
Definition at line 25 of file CustomerRegistryTest.php.
const WEBSITE_ID = 1 |
Definition at line 27 of file CustomerRegistryTest.php.