public function test_getByCustomerId_withAssetType() { /** === Test Data === */ $CUST_ID = 32; $ASSET_TYPE_ID = 45; $RESULT = [['some data' => 'here']]; /** === Setup Mocks === */ // $result = $this->get($where); // $result = $this->_repoGeneric->getEntities($this->_entityName, null, $where, $order, $limit, $offset); $this->mRepoGeneric->shouldReceive('getEntities')->andReturn($RESULT); /** === Call and asserts === */ $res = $this->obj->getByCustomerId($CUST_ID, $ASSET_TYPE_ID); $this->assertInstanceOf(\Praxigento\Accounting\Data\Entity\Account::class, $res); }
public function test_getByCustomerId() { $res = $this->_obj->getByCustomerId(static::DEF_CUSTOMER_ID, static::DEF_ASSET_TYPE_ID); $this->assertInstanceOf(Entity::class, $res); }