-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Session fix (cherry pick from #37) * adjust p6 config, remove runtime config modifier in tests
- Loading branch information
Showing
9 changed files
with
112 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
i18n: | ||
mode: language | ||
locale_adapter: system | ||
default_locale: 'en' | ||
translations: ~ | ||
|
||
pimcore: | ||
cache: | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
actor: FunctionalTester | ||
modules: | ||
enabled: | ||
- \DachcomBundle\Test\Helper\PimcoreCore: | ||
connect_db: true | ||
rebootable_client: true | ||
configuration_file: 'config_full_page_cache.yml' | ||
- \DachcomBundle\Test\Helper\PimcoreBundleCore: | ||
run_installer: true | ||
- \DachcomBundle\Test\Helper\Browser\PhpBrowser: | ||
depends: \DachcomBundle\Test\Helper\PimcoreCore | ||
- \DachcomBundle\Test\Helper\PimcoreBackend | ||
- \DachcomBundle\Test\Helper\PimcoreUser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace DachcomBundle\Test\FunctionalFullPageCache; | ||
|
||
use DachcomBundle\Test\FunctionalTester; | ||
|
||
class FullPageCacheCest | ||
{ | ||
/** | ||
* @param FunctionalTester $I | ||
*/ | ||
public function testFullPageCacheEnabled(FunctionalTester $I) | ||
{ | ||
$site1 = $I->haveASite('test-domain1.test'); | ||
$I->haveAPageDocumentForSite($site1, 'en', 'en'); | ||
$I->haveAPageDocumentForSite($site1, 'de', 'de'); | ||
|
||
$I->amOnPageWithLocale('http://test-domain1.test/de', 'de'); | ||
|
||
$I->dontSeePimcoreOutputCacheDisabledHeader(); | ||
$I->seePimcoreOutputCacheDate(); | ||
$I->seeEmptyI18nSessionBag(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
// Here you can initialize variables that will be available to your tests |