forked from lolli42/TYPO3-Travis-Integration
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Import all phpunit and other necessary files
- Loading branch information
0 parents
commit 5517593
Showing
949 changed files
with
196,000 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This repo contains all files needed to integrate the TYPO3 into travis infrastructure | ||
|
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 @@ | ||
INSERT INTO be_users (pid, tstamp, username, password, admin, usergroup, disable, starttime, endtime, lang, email) VALUES (0,1276860841,'_cli_phpunit','5f4dcc3b5aa765d61d8327deb882cf99',0,'1',0,0,0,'','[email protected]'); |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,81 @@ | ||
<?php | ||
/*************************************************************** | ||
* Copyright notice | ||
* | ||
* (c) 2008-2011 Kasper Ligaard <[email protected]> | ||
* All rights reserved | ||
* | ||
* This script is part of the TYPO3 project. The TYPO3 project is | ||
* free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* The GNU General Public License can be found at | ||
* http://www.gnu.org/copyleft/gpl.html. | ||
* | ||
* This script is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* This copyright notice MUST APPEAR in all copies of the script! | ||
***************************************************************/ | ||
|
||
/** | ||
* This class uses the new AJAX broker in Typo3 4.2. | ||
* | ||
* @see http://bugs.typo3.org/view.php?id=7096 | ||
* | ||
* @package TYPO3 | ||
* @subpackage tx_phpunit | ||
* | ||
* @author Kasper Ligaard <[email protected]> | ||
* @author Michael Klapper <[email protected]> | ||
* @author Oliver Klee <[email protected]> | ||
* @author Bastian Waidelich <[email protected]> | ||
* @author Carsten Koenig <[email protected]> | ||
*/ | ||
class Tx_Phpunit_BackEnd_Ajax { | ||
/** | ||
* Used to broker incoming requests to other calls. | ||
* Called by typo3/ajax.php | ||
* | ||
* @param array $parameters | ||
* additional parameters (not used) | ||
* @param TYPO3AJAX $ajaxObj | ||
* the AJAX object of this request | ||
* | ||
* @return void | ||
*/ | ||
public function ajaxBroker(array $parameters, TYPO3AJAX $ajaxObj) { | ||
// Checks for legal input ('white-listing'). | ||
$state = t3lib_div::_POST('state') === 'true' ? 'on' : 'off'; | ||
$checkbox = t3lib_div::_POST('checkbox'); | ||
switch ($checkbox) { | ||
case 'failure': | ||
case 'success': | ||
case 'error': | ||
case 'skipped': | ||
case 'notimplemented': | ||
case 'testdox': | ||
case 'codeCoverage': | ||
case 'showMemoryAndTime': | ||
case 'runSeleniumTests': | ||
break; | ||
default: | ||
$checkbox = FALSE; | ||
} | ||
|
||
if ($checkbox) { | ||
$ajaxObj->setContentFormat('json'); | ||
$GLOBALS['BE_USER']->uc['moduleData']['tools_txphpunitM1'][$checkbox] = $state; | ||
$GLOBALS['BE_USER']->writeUC(); | ||
$ajaxObj->addContent('success', TRUE); | ||
} else { | ||
$ajaxObj->setContentFormat('plain'); | ||
$ajaxObj->setError('Illegal input parameters.'); | ||
} | ||
} | ||
} | ||
?> |
Oops, something went wrong.