Skip to content

Commit

Permalink
Merge pull request #664 from bummzack/pulls/fix-unittests
Browse files Browse the repository at this point in the history
Merged #664
  • Loading branch information
bummzack authored Jun 15, 2018
2 parents 3dd378e + 10b944b commit fa6fd63
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 20 deletions.
24 changes: 5 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,14 @@ env:

matrix:
include:
- php: 5.6
env: DB=PGSQL CORE_RELEASE=3.2 COVERAGE=1
- php: 5.6
env: DB=PGSQL CORE_RELEASE=3.2 COVERAGE=2
- php: 5.6
env: DB=PGSQL CORE_RELEASE=3.2 COVERAGE=3
- php: 7.0
env: DB=PGSQL CORE_RELEASE=3.6
- php: 5.5
env: DB=SQLITE CORE_RELEASE=3.1
- php: 5.6
env: DB=MYSQL CORE_RELEASE=3.2
- php: 7.0
env: DB=PGSQL CORE_RELEASE=3.6 COVERAGE=1
- php: 7.0
env: DB=PGSQL CORE_RELEASE=master
allow_failures:
- env: DB=PGSQL CORE_RELEASE=master
env: DB=PGSQL CORE_RELEASE=3.7

before_script:
- composer self-update
Expand All @@ -35,11 +29,3 @@ before_script:
script: ./silvershop/tests/travis/run_build.sh

after_success: ./silvershop/tests/travis/upload_coverage.sh

notifications:
webhooks:
urls:
- 'https://webhooks.gitter.im/e/a3720004986a0f249abc'
on_success: change
on_failure: always
on_start: false
2 changes: 1 addition & 1 deletion code/product/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function getCMSFields()
TextField::create('Model', _t('Product.Model', 'Model'), '', 30),
CheckboxField::create('Featured', _t('Product.Featured', 'Featured Product')),
CheckboxField::create('AllowPurchase', _t('Product.AllowPurchase', 'Allow product to be purchased'), 1),
]);
], 'Content');

$fields->addFieldsToTab('Root.Pricing', [
TextField::create('BasePrice', _t('Product.db_BasePrice', 'Price'))
Expand Down
1 change: 1 addition & 0 deletions tests/account/OrderActionsFormTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function setUp()
$this->checkoutPage->publish('Stage', 'Live');

Config::inst()->update('Payment', 'allowed_gateways', array('Dummy'));
Config::inst()->update('GatewayInfo', 'Dummy', array('is_offsite' => false));
}

public function testOffsitePayment()
Expand Down
3 changes: 3 additions & 0 deletions tests/checkout/SteppedCheckoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public function setUp()
{
parent::setUp();
ShopTest::setConfiguration();
Config::inst()->update('GatewayInfo', 'Dummy', array('is_offsite' => false));

//set up steps
SteppedCheckout::setupSteps(); //use default steps

Expand Down Expand Up @@ -164,6 +166,7 @@ public function testPaymentMethod()

public function testSummary()
{
$this->useDraftSite(false);
$this->checkout->summary();
$form = $this->checkout->ConfirmationForm();
$data = array(
Expand Down

0 comments on commit fa6fd63

Please sign in to comment.