Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #62 from punktDe/bugfix/Fix-Functional-LoggerTest
Browse files Browse the repository at this point in the history
Bugfix/fix functional logger test
  • Loading branch information
ursulaklinger authored Apr 17, 2019
2 parents c4aabe6 + 8827212 commit a001905
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
11 changes: 11 additions & 0 deletions Classes/SqlGenerator/SqlGeneratorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@
*/
interface Tx_PtExtbase_SqlGenerator_SqlGeneratorInterface
{
/**
* @const TEMP_PREFIX
*/
const TEMP_PREFIX = 'zzzz_temp_';

/**
* @const BACKUP_PREFIX
*/
const BACKUP_PREFIX = 'zzzz_bck_';


/**
* @abstract
* @return array of single SQL commands
Expand Down
4 changes: 2 additions & 2 deletions Tests/Functional/Logger/LoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public function tearDown()
public function logInfoWithoutFurtherParameter()
{
$this->logger->info('test');
$this->assertLogFileContains('component="Tx.PtExtbase.Logger.Logger": test');
$this->assertLogFileContains('component="PunktDe.PtExtbase.Logger.Logger": test');
$this->assertLogFileContains('[INFO]');
}

Expand Down Expand Up @@ -254,7 +254,7 @@ public function logException()
}

$this->assertLogFileContains('[CRITICAL]');
$this->assertLogFileContains('component="Tx.PtExtbase.Logger.Logger": Uncaught exception: This is a Test Exception - See also:');
$this->assertLogFileContains('component="PunktDe.PtExtbase.Logger.Logger": Uncaught exception: This is a Test Exception - See also:');

$this->assertCount(1, Tx_PtExtbase_Utility_Files::readDirectoryRecursively($this->logExceptionsPath));
}
Expand Down
8 changes: 5 additions & 3 deletions Tests/Functional/Utility/Lock/MySqlLockTestSecondInstance.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ class MySqlLockTestSecondInstance
protected function connect($context)
{

require_once __DIR__ .'/../../../../Classes/SqlGenerator/SqlGeneratorInterface.php';

// Load system specific configuration for Apache mode
$GLOBALS['TYPO3_CONF_VARS'] = require(__DIR__ . '/../../../../../../LocalConfiguration.php');
$dpppConfiguration = __DIR__ . '/../../../../../../configurations/' . $context . '/AdditionalConfiguration.php';
$localConfiguration = __DIR__ . '/../../../../../../configurations/' . $context . '/AdditionalConfiguration.php';

if (file_exists($dpppConfiguration)) {
@include($dpppConfiguration);
if (file_exists($localConfiguration)) {
@include($localConfiguration);
}

$credentials = $GLOBALS['TYPO3_CONF_VARS']['DB'];
Expand Down

0 comments on commit a001905

Please sign in to comment.