Skip to content
This repository has been archived by the owner on Feb 4, 2019. It is now read-only.

Commit

Permalink
acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Auris committed Sep 14, 2016
1 parent 3caef96 commit bb50ec4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion codeception.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
actor: Tester

include:
- tests/*
- vendor/spryker/spryker/Bundles/*


paths:
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions deploy/test/functions.sh

This file was deleted.

10 changes: 9 additions & 1 deletion setup_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
set -o pipefail

SETUP='spryker'
DEVELOPMENT_DATABASE_NAME='DE_development_zed'
DATABASE_NAME='DE_test_zed'
DATABASE_USER='development'
DATABASE_PASSWORD='mate20mg'
Expand Down Expand Up @@ -40,7 +41,7 @@ function backupTestingEnvData {

runCollectors

dumpDevelopmentDatabase $DATABASE_BACKUP_PATH
backupDevelopmentForTests

successText "Backup successful."
}
Expand All @@ -50,6 +51,13 @@ function restoreTestingEnvData {
dropAndRestoreDatabase $DATABASE_BACKUP_PATH
}

function backupDevelopmentForTests {
export PGPASSWORD=$DATABASE_PASSWORD
export LC_ALL="en_US.UTF-8"

pg_dump -i -h 127.0.0.1 -U $DATABASE_USER -F c -b -v -f $DATABASE_BACKUP_PATH $DEVELOPMENT_DATABASE_NAME
}

function runCollectors() {

export PGPASSWORD=$DATABASE_PASSWORD
Expand Down
4 changes: 0 additions & 4 deletions tests/Acceptance/Tax/Zed/TaxRateCreateCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ public function testCreateTaxRateWhichAlreadyExistsShouldShowErrorMessage(TaxRat

$i->createTaxRate(TaxRateCreatePage::TAX_RATE_VALID);
$i->see(TaxRateCreatePage::ERROR_MESSAGE_TAX_RATE_ALREADY_EXISTS);

$i->removeTaxRateFromDatabase(TaxRateCreatePage::TAX_RATE_VALID);
}

/**
Expand All @@ -116,8 +114,6 @@ public function testCreateAlreadyExistedTaxRateShouldShowErrorMessage(TaxRateTes
$i->wait(2);

$i->see(TaxRateCreatePage::ERROR_MESSAGE_TAX_RATE_ALREADY_EXISTS);

$i->removeTaxRateFromDatabase(TaxRateCreatePage::TAX_RATE_VALID);
}

}

0 comments on commit bb50ec4

Please sign in to comment.