コード例 #1
0
 protected function setUp()
 {
     parent::setUp();
     /** create mocks */
     $this->mRepoGeneric = $this->_mockRepoGeneric();
     $this->mSetup = $this->_mock(\Magento\Framework\Setup\ModuleDataSetupInterface::class);
     $this->mContext = $this->_mock(\Magento\Framework\Setup\ModuleContextInterface::class);
     /** create object to test */
     $this->obj = new ChildToTest($this->mResource, $this->mRepoGeneric);
 }
コード例 #2
0
 public function setUp()
 {
     parent::setUp();
     /** create object to test */
     $this->obj = new InstallSchema($this->mResource, $this->mToolDem);
 }
コード例 #3
0
 protected function setUp()
 {
     parent::setUp();
     /** create object to test */
     $this->obj = new ChildToTest($this->mResource, $this->mToolDem);
 }