本文整理汇总了PHP中Praxigento\Core\Test\BaseCase\Mockery类的典型用法代码示例。如果您正苦于以下问题:PHP Mockery类的具体用法?PHP Mockery怎么用?PHP Mockery使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Mockery类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setUp
protected function setUp()
{
parent::setUp();
/** create mocks */
$this->mFactoryTrans = $this->_mock(\Praxigento\Core\Transaction\Business\IFabrique::class);
$this->obj = new Manager($this->mFactoryTrans);
}
示例2: setUp
protected function setUp()
{
parent::setUp();
/** create mocks */
$this->mLogger = $this->_mockLogger();
$this->mManObj = $this->_mockObjectManager();
}
示例3: setUp
protected function setUp()
{
parent::setUp();
$repoDownlineCustomer = ObjectManager::getInstance()->get(\Praxigento\Downline\Repo\Entity\ICustomer::class);
/** create object to test */
$this->obj = new Module($repoDownlineCustomer);
}
示例4: setUp
protected function setUp()
{
parent::setUp();
/** create mocks */
$this->mLogger = $this->_mockLogger();
$this->obj = new Item($this->mLogger);
}
示例5: setUp
protected function setUp()
{
parent::setUp();
/** create mocks */
$this->mManObj = $this->_mock(\Magento\Framework\ObjectManagerInterface::class);
$this->obj = new Factory($this->mManObj);
}
示例6: setUp
protected function setUp()
{
parent::setUp();
/** create mocks */
$this->mTypeProcessor = $this->_mock(\Magento\Framework\Reflection\TypeProcessor::class);
/** create object to test */
$this->obj = new \Praxigento\Core\Reflection\Tool\Type($this->mTypeProcessor);
}
示例7: setUp
public function setUp()
{
parent::setUp();
/** create mocks */
$this->mRepoWrhs = $this->_mock(\Praxigento\Warehouse\Repo\Entity\IWarehouse::class);
/** create object to test */
$this->obj = new Repo($this->mRepoWrhs);
}
示例8: setUp
public function setUp()
{
parent::setUp();
/** create mocks */
$this->mToolReferralCode = $this->_mock(\Praxigento\Downline\Tool\IReferral::class);
/** create object to test */
$this->obj = new FrontControllerPlugin($this->mToolReferralCode);
}
示例9: setUp
protected function setUp()
{
parent::setUp();
/** create mocks */
$this->mSubject = $this->_mock(\Magento\Catalog\Model\ResourceModel\Product\Collection::class);
/** create object to test */
$this->obj = new Collection();
}
示例10: setUp
protected function setUp()
{
parent::setUp();
/** create mocks */
$this->mSubRegister = $this->_mock(\Praxigento\Pv\Observer\Sub\Register::class);
/** create object to test */
$this->obj = new CheckoutSubmitAllAfter($this->mSubRegister);
}
示例11: setUp
protected function setUp()
{
parent::setUp();
/** create mocks */
$this->mSubject = $this->_mock(\Magento\CatalogInventory\Model\Stock\Item::class);
/** create object to test */
$this->obj = new Item();
}
示例12: setUp
protected function setUp()
{
parent::setUp();
$this->mCallDownlineMap = $this->_mock(\Praxigento\Downline\Service\IMap::class);
$this->mCallDownlineSnap = $this->_mock(\Praxigento\Downline\Service\ISnap::class);
$this->mToolDownlineTree = $this->_mock(\Praxigento\Downline\Tool\ITree::class);
$this->sub = new Qualification($this->mCallDownlineMap, $this->mCallDownlineSnap, $this->mToolDownlineTree);
}
示例13: setUp
protected function setUp()
{
parent::setUp();
/** create mocks */
$this->mQueryModGrid = $this->_mock(\Praxigento\Warehouse\Repo\Modifier\Product\Grid::class);
/** create object to test */
$this->obj = new AddQuantityFieldToCollection($this->mQueryModGrid);
}
示例14: setUp
protected function setUp()
{
parent::setUp();
/** create mocks */
$this->mSubject = $this->_mock(\Magento\Framework\Reflection\TypeProcessor::class);
/** create object to test */
$this->obj = new TypeProcessorToTest();
}
示例15: setUp
public function setUp()
{
parent::setUp();
$resource = ObjectManager::getInstance()->get(\Magento\Framework\App\ResourceConnection::class);
$repoGeneric = ObjectManager::getInstance()->get(\Praxigento\Core\Repo\IGeneric::class);
$this->_obj = new Entity($resource, $repoGeneric, DataEntity::class);
$this->_obj2 = new Entity($resource, $repoGeneric, DataEntityOther::class);
}