Removed no longer useful tests
This commit is contained in:
@@ -196,22 +196,6 @@ class RemoveXAmountTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals($expected, $actual);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Thelia\Coupon\Type\RemoveXPercent::getToolTip
|
||||
*/
|
||||
public function testGetInputName()
|
||||
{
|
||||
$inputName = 'Amount removed from the cart';
|
||||
$stubFacade = $this->generateFacadeStub(399, 'EUR', $inputName);
|
||||
|
||||
/** @var FacadeInterface $stubFacade */
|
||||
$coupon = new RemoveXAmount($stubFacade);
|
||||
|
||||
$actual = $coupon->getInputName();
|
||||
$expected = $inputName;
|
||||
$this->assertEquals($expected, $actual);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tears down the fixture, for example, closes a network connection.
|
||||
* This method is called after a test is executed.
|
||||
|
||||
@@ -152,8 +152,6 @@ class RemoveXPercentTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals(254, $coupon->getMaxUsage());
|
||||
$this->assertEquals($date, $coupon->getExpirationDate());
|
||||
|
||||
$this->assertEquals(array(RemoveXPercent::INPUT_PERCENTAGE_NAME), $coupon->getExtendedInputs());
|
||||
|
||||
$this->assertEquals(40.00, $coupon->exec());
|
||||
}
|
||||
|
||||
@@ -188,22 +186,6 @@ class RemoveXPercentTest extends \PHPUnit_Framework_TestCase
|
||||
$this->assertEquals($expected, $actual);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Thelia\Coupon\Type\RemoveXPercent::getToolTip
|
||||
*/
|
||||
public function testGetInputName()
|
||||
{
|
||||
$inputName = 'Percentage removed from the cart';
|
||||
$stubFacade = $this->generateFacadeStub(399, 'EUR', $inputName);
|
||||
|
||||
/** @var FacadeInterface $stubFacade */
|
||||
$coupon = new RemoveXPercent($stubFacade);
|
||||
|
||||
$actual = $coupon->getInputName();
|
||||
$expected = $inputName;
|
||||
$this->assertEquals($expected, $actual);
|
||||
}
|
||||
|
||||
/**
|
||||
* Tears down the fixture, for example, closes a network connection.
|
||||
* This method is called after a test is executed.
|
||||
|
||||
Reference in New Issue
Block a user