Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AbstractFormTestCase.php
Go to the documentation of this file.
1 <?php
7 
9 abstract class AbstractFormTestCase extends \PHPUnit\Framework\TestCase
10 {
12  protected $localeMock;
13 
16 
18  protected $loggerMock;
19 
22 
23  protected function setUp()
24  {
25  $this->localeMock = $this->getMockBuilder(\Magento\Framework\Stdlib\DateTime\TimezoneInterface::class)
26  ->getMock();
27  $this->localeResolverMock = $this->getMockBuilder(\Magento\Framework\Locale\ResolverInterface::class)
28  ->getMock();
29  $this->loggerMock = $this->getMockBuilder(\Psr\Log\LoggerInterface::class)->getMock();
30  $this->attributeMetadataMock = $this->createMock(\Magento\Customer\Api\Data\AttributeMetadataInterface::class);
31  }
32 }