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

Commit

Permalink
core-1652 test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stereomon committed Aug 3, 2017
1 parent 1fdca05 commit 68f6790
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 9 deletions.
2 changes: 1 addition & 1 deletion codeception.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ actor: Tester
include:
- tests/PyzTest/Yves/*
- tests/PyzTest/Zed/*
# - vendor/spryker/spryker/Bundles/*
- vendor/spryker/spryker/Bundles/*

paths:
tests: tests
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function _initialize()

defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'devtest');
defined('APPLICATION_STORE') || define('APPLICATION_STORE', (isset($_SERVER['APPLICATION_STORE'])) ? $_SERVER['APPLICATION_STORE'] : 'DE');
defined('APPLICATION') || define('APPLICATION', '');

defined('APPLICATION_ROOT_DIR') || define('APPLICATION_ROOT_DIR', $rootDir);
defined('APPLICATION_SOURCE_DIR') || define('APPLICATION_SOURCE_DIR', APPLICATION_ROOT_DIR . '/src');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ class CheckoutControllerTest extends Unit
*/
protected function setUp()
{
$this->markTestSkipped('Move this to function controller tests');
$this->skipIfCi();
$this->controller = new CheckoutController();

Expand All @@ -111,6 +110,7 @@ protected function skipIfCi()
*/
public function testIndexAction()
{
$this->markTestSkipped('Move this to function controller tests');
$checkoutController = new CheckoutController();

$this->setQuoteForCustomer();
Expand All @@ -128,6 +128,7 @@ public function testIndexAction()
*/
public function testCustomerActionShouldRenderRegisterAndLoginForms()
{
$this->markTestSkipped('Move this to function controller tests');
$request = Request::createFromGlobals();
$request->attributes->set('_route', CheckoutControllerProvider::CHECKOUT_CUSTOMER);

Expand All @@ -143,6 +144,7 @@ public function testCustomerActionShouldRenderRegisterAndLoginForms()
*/
public function testCustomerAction()
{
$this->markTestSkipped('Move this to function controller tests');
$this->setQuoteForCustomer();

$customerData = $this->getFormData(self::CUSTOMER_URL, self::CUSTOMER_ACTION, self::CUSTOMER_ROUTE, self::GUEST_FORM);
Expand Down Expand Up @@ -170,6 +172,7 @@ public function testCustomerAction()
*/
public function testAddressActionShouldRenderAddressForms()
{
$this->markTestSkipped('Move this to function controller tests');
$this->setQuoteForAddress();

$request = Request::createFromGlobals();
Expand All @@ -186,6 +189,7 @@ public function testAddressActionShouldRenderAddressForms()
*/
public function testAddressAction()
{
$this->markTestSkipped('Move this to function controller tests');
$this->setQuoteForAddress();

$addressesData = $this->getFormData(self::ADDRESS_URL, self::ADDRESS_ACTION, self::ADDRESS_ROUTE, self::ADDRESS_FORM);
Expand Down Expand Up @@ -219,6 +223,7 @@ public function testAddressAction()
*/
public function testShipmentActionShouldRenderShipmentForms()
{
$this->markTestSkipped('Move this to function controller tests');
$this->setQuoteForShipment();

$request = Request::createFromGlobals();
Expand All @@ -235,6 +240,7 @@ public function testShipmentActionShouldRenderShipmentForms()
*/
public function testShipmentAction()
{
$this->markTestSkipped('Move this to function controller tests');
$this->setQuoteForShipment();

$shipmentData = $this->getFormData(self::SHIPMENT_URL, self::SHIPMENT_ACTION, self::SHIPMENT_ROUTE, self::SHIPMENT_FORM);
Expand All @@ -257,6 +263,7 @@ public function testShipmentAction()
*/
public function testPaymentActionShouldRenderPaymentForms()
{
$this->markTestSkipped('Move this to function controller tests');
$this->allowMoreThenOneRequestToZed();

$this->setQuoteForPayment();
Expand All @@ -277,6 +284,7 @@ public function testPaymentActionShouldRenderPaymentForms()
*/
public function testPaymentAction()
{
$this->markTestSkipped('Move this to function controller tests');
$this->allowMoreThenOneRequestToZed();

$this->setQuoteForPayment();
Expand Down Expand Up @@ -323,6 +331,7 @@ public function testSummaryActionShouldRenderSummaryPage()
*/
public function testSummaryAction()
{
$this->markTestSkipped('Move this to function controller tests');
$this->allowMoreThenOneRequestToZed();

$this->setQuoteForSummary();
Expand All @@ -346,6 +355,7 @@ public function testSummaryAction()
*/
public function testPlaceOrder()
{
$this->markTestSkipped('Move this to function controller tests');
$this->markTestIncomplete('Request data missing');
$this->setQuoteForSummary();

Expand Down
11 changes: 6 additions & 5 deletions tests/PyzTest/Zed/CmsGui/Acceptance/CmsGuiPageListCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,29 @@
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace PyzTest\Zed\CmsGui;
namespace PyzTest\Zed\CmsGui\Acceptance;

use Acceptance\CmsGui\PageObject\CmsListPage;
use Acceptance\CmsGui\Tester\CmsPageListTester;
use PyzTest\Zed\CmsGui\CmsGuiAcceptanceTester;
use PyzTest\Zed\CmsGui\PageObject\CmsListPage;

/**
* Auto-generated group annotations
* @group PyzTest
* @group Zed
* @group CmsGui
* @group Acceptance
* @group CmsGuiPageListCest
* Add your own group annotations below this line
*/
class CmsGuiPageListCest
{

/**
* @param \Acceptance\CmsGui\Tester\CmsPageListTester $i
* @param \PyzTest\Zed\CmsGui\CmsGuiAcceptanceTester $i
*
* @return void
*/
public function testICanOpenCmsPageList(CmsPageListTester $i)
public function testICanOpenCmsPageList(CmsGuiAcceptanceTester $i)
{
$i->amLoggedInUser();
$i->amOnPage(CmsListPage::URL);
Expand Down
1 change: 1 addition & 0 deletions tests/PyzTest/Zed/CmsGui/codeception.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ suites:
modules:
enabled:
- \PyzTest\Shared\Testify\Helper\Environment
- \SprykerTest\Shared\Application\Helper\ZedHelper
- \Config\Module\ConfigInit
- \SprykerTest\Shared\Testify\Helper\LocatorHelper:
projectNamespaces: ['Pyz']
Expand Down
4 changes: 2 additions & 2 deletions tests/PyzTest/Zed/Product/codeception.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ coverage:

suites:
Business:
path: .
path: Business
class_name: ProductBusinessTester
modules:
enabled:
- Asserts
- \SprykerTest\Shared\Testify\Helper\Environment
- \PyzTest\Shared\Testify\Helper\Environment
- \SprykerTest\Shared\Testify\Helper\LocatorHelper:
projectNamespaces: ['Pyz']

Expand Down

0 comments on commit 68f6790

Please sign in to comment.