Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
BaseTestCase.php
Go to the documentation of this file.
1 <?php
7 
9 
16 abstract class BaseTestCase extends \PHPUnit\Framework\TestCase
17 {
23  protected $objectManager;
24 
28  protected function setUp()
29  {
30  $this->objectManager = new ObjectManager($this);
31  }
32 
39  protected function basicMock($className)
40  {
41  return $this->getMockBuilder($className)
42  ->disableOriginalConstructor()
43  ->getMock();
44  }
45 
53  public function booleanDataProvider()
54  {
55  return [[true], [false]];
56  }
57 }
if($currentSelectedMethod==$_code) $className
Definition: form.phtml:31