6cb487dd8a5d84bea051a32ff8de8a666fc1033e
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Acceptance / Step / Backend / Editor.php
1 <?php
2 namespace TYPO3\CMS\Core\Tests\Acceptance\Step\Backend;
3
4 /*
5 * This file is part of the TYPO3 CMS project.
6 *
7 * It is free software; you can redistribute it and/or modify it under
8 * the terms of the GNU General Public License, either version 2
9 * of the License, or any later version.
10 *
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
13 *
14 * The TYPO3 project - inspiring people to share!
15 */
16
17 /**
18 * A backend editor
19 */
20 class Editor extends \AcceptanceTester
21 {
22 /**
23 * @var string Assigned session cookie
24 */
25 protected $sessionCookie = 'ff83dfd81e20b34c27d3e97771a4525a';
26
27 /**
28 * Use the existing database session from the fixture by setting the backend user cookie
29 */
30 public function useExistingSession()
31 {
32 $I = $this;
33 $I->amOnPage('/typo3/index.php');
34 $I->setCookie('be_typo_user', $this->sessionCookie, array('path' => '/typo3temp/var/tests/acceptance/'));
35 $I->setCookie('be_lastLoginProvider', '1433416747', array('path' => '/typo3temp/var/tests/acceptance/'));
36 // reload the page to have a logged in backend
37 $I->amOnPage('/typo3/index.php');
38 }
39 }