/** * @param string|int $price * @param string|float $qty * @expectedException \Magento\Framework\Exception\InputException * @dataProvider addDataProvider */ public function testAddWithInvalidData($price, $qty) { $this->service->add('product_sku', 1, $price, $qty); }