Skip to content

Commit

Permalink
remove php 7.1 tests, fix hardlink properties test (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat authored May 7, 2019
1 parent ecabf16 commit 842aab0
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 25 deletions.
52 changes: 31 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,61 +21,71 @@ env:
- DACHCOM_TEST_SECTION=codeception
matrix:
include:
- name: "PHPStan Static Analysis (Pimcore 5.7.x, PHP 7.2)"
- name: "PHPStan Static Analysis (Pimcore 5.8.x, PHP 7.3)"
sudo: required
php: 7.2
php: 7.3
env:
- PIMCORE_SKELETON_BRANCH="tags/v1.2.0"
- PIMCORE_SKELETON_BRANCH="tags/v1.3.0"
- DACHCOM_TEST_SECTION=phpstan
- name: "PHP ECS (Pimcore 5.6.x, PHP 7.2)"
- name: "PHP ECS (Pimcore 5.8.x, PHP 7.3)"
sudo: required
php: 7.2
php: 7.3
env:
- PIMCORE_SKELETON_BRANCH="tags/v1.1.0"
- PIMCORE_SKELETON_BRANCH="tags/v1.3.0"
- DACHCOM_TEST_SECTION=ecs
- name: "Codeception Tests (Pimcore 5.4.x, PHP 7.1)"
sudo: required
php: 7.1
env:
- PIMCORE_SKELETON_BRANCH="tags/v1.0.4"
- name: "Codeception Tests (Pimcore 5.4.x, PHP 7.2)"
sudo: required
php: 7.2
env:
- PIMCORE_SKELETON_BRANCH="tags/v1.0.4"
- name: "Codeception Tests (Pimcore 5.5.x, PHP 7.1)"
- name: "Codeception Tests (Pimcore 5.4.x, PHP 7.3)"
sudo: required
php: 7.1
php: 7.3
env:
- PIMCORE_SKELETON_BRANCH="tags/v1.0.5"
- PIMCORE_SKELETON_BRANCH="tags/v1.0.4"
- name: "Codeception Tests (Pimcore 5.5.x, PHP 7.2)"
sudo: required
php: 7.2
env:
- PIMCORE_SKELETON_BRANCH="tags/v1.0.5"
- name: "Codeception Tests (Pimcore 5.6.x, PHP 7.1)"
- name: "Codeception Tests (Pimcore 5.5.x, PHP 7.3)"
sudo: required
php: 7.1
php: 7.3
env:
- PIMCORE_SKELETON_BRANCH="tags/v1.1.0"
- PIMCORE_SKELETON_BRANCH="tags/v1.0.5"
- name: "Codeception Tests (Pimcore 5.6.x, PHP 7.2)"
sudo: required
php: 7.2
env:
- PIMCORE_SKELETON_BRANCH="tags/v1.1.0"
- name: "Codeception Tests (Pimcore 5.7.x, PHP 7.1)"
- name: "Codeception Tests (Pimcore 5.6.x, PHP 7.3)"
sudo: required
php: 7.1
php: 7.3
env:
- PIMCORE_SKELETON_BRANCH="tags/v1.2.0"
- PIMCORE_SKELETON_BRANCH="tags/v1.1.0"
- name: "Codeception Tests (Pimcore 5.7.x, PHP 7.2)"
sudo: required
php: 7.2
env:
- PIMCORE_SKELETON_BRANCH="tags/v1.2.0"
- name: "Codeception Tests (Pimcore 5.7.x, PHP 7.3)"
sudo: required
php: 7.3
env:
- PIMCORE_SKELETON_BRANCH="tags/v1.2.0"
- name: "Codeception Tests (Pimcore 5.8.x, PHP 7.2)"
sudo: required
php: 7.2
env:
- PIMCORE_SKELETON_BRANCH="tags/v1.3.0"
- name: "Codeception Tests (Pimcore 5.8.x, PHP 7.3)"
sudo: required
php: 7.3
env:
- PIMCORE_SKELETON_BRANCH="tags/v1.3.0"
allow_failures:
- env:
- PIMCORE_SKELETON_BRANCH="tags/v1.1.0"
- PIMCORE_SKELETON_BRANCH="tags/v1.3.0"
- DACHCOM_TEST_SECTION=ecs
fast_finish: true

Expand Down
2 changes: 0 additions & 2 deletions tests/_support/Helper/PimcoreBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,6 @@ protected function generateHardlink(Page $source, $key = 'hardlink-test', $local
$hardlink->setSourceId($source->getId());
$hardlink->setPropertiesFromSource(true);
$hardlink->setChildrenFromSource(true);
$hardlink->setProperty('navigation_title', 'text', $key);
$hardlink->setProperty('navigation_name', 'text', $key);

if ($locale !== null) {
$hardlink->setProperty('language', 'text', $locale, false, true);
Expand Down
4 changes: 2 additions & 2 deletions tests/functional.default.country/InternalLinksCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ public function testInternalLink(FunctionalTester $I)
$documentSub1 = $I->haveASubPageDocument($document1, 'sub-page-1');
$documentSubSub1 = $I->haveASubPageDocument($documentSub1, 'sub-sub-page-1');

$link1 = $I->haveASubLink($document1, $documentSubSub1, 'sub-link-1');
$hardlink1 = $I->haveAHardLink($document1, 'en-us', 'en_US');
$I->haveASubLink($document1, $documentSubSub1, 'sub-link-1');
$I->haveAHardLink($document1, 'en-us', 'en_US');

$I->amOnPageWithLocaleAndCountry('/en', 'en-US', 'us');
$I->seeLink('sub-link-1', '/en/sub-page-1/sub-sub-page-1');
Expand Down

0 comments on commit 842aab0

Please sign in to comment.