mirror of
https://github.com/Codappix/search_core.git
synced 2024-11-24 18:16:11 +01:00
TASK: Do not comment out code for non working tests
Mark tests as non working for now.
This commit is contained in:
parent
dea028ed0f
commit
22e097ca85
1 changed files with 22 additions and 21 deletions
|
@ -74,7 +74,7 @@ class TcaTableServiceTest extends AbstractUnitTestCase
|
||||||
*/
|
*/
|
||||||
public function doUsePlainQueryIfNoAdditionalWhereClauseIsDefined()
|
public function doUsePlainQueryIfNoAdditionalWhereClauseIsDefined()
|
||||||
{
|
{
|
||||||
$this->markTestSkipped('We have to migrate this test for TYPO3 CMS 8.x');
|
$this->markTestIncomplete('We have to migrate this test for TYPO3 CMS 8.x');
|
||||||
$this->configuration->expects($this->exactly(2))
|
$this->configuration->expects($this->exactly(2))
|
||||||
->method('getIfExists')
|
->method('getIfExists')
|
||||||
->withConsecutive(['indexing.table.additionalWhereClause'], ['indexing.table.rootLineBlacklist'])
|
->withConsecutive(['indexing.table.additionalWhereClause'], ['indexing.table.rootLineBlacklist'])
|
||||||
|
@ -98,7 +98,7 @@ class TcaTableServiceTest extends AbstractUnitTestCase
|
||||||
*/
|
*/
|
||||||
public function configuredAdditionalWhereClauseIsAdded()
|
public function configuredAdditionalWhereClauseIsAdded()
|
||||||
{
|
{
|
||||||
$this->markTestSkipped('We have to migrate this test for TYPO3 CMS 8.x');
|
$this->markTestIncomplete('We have to migrate this test for TYPO3 CMS 8.x');
|
||||||
$this->configuration->expects($this->exactly(2))
|
$this->configuration->expects($this->exactly(2))
|
||||||
->method('getIfExists')
|
->method('getIfExists')
|
||||||
->withConsecutive(['indexing.table.additionalWhereClause'], ['indexing.table.rootLineBlacklist'])
|
->withConsecutive(['indexing.table.additionalWhereClause'], ['indexing.table.rootLineBlacklist'])
|
||||||
|
@ -110,15 +110,15 @@ class TcaTableServiceTest extends AbstractUnitTestCase
|
||||||
|
|
||||||
$this->subject->getRecord(10);
|
$this->subject->getRecord(10);
|
||||||
|
|
||||||
// $whereClause = $this->subject->getWhereClause();
|
$whereClause = $this->subject->getWhereClause();
|
||||||
// $this->assertSame(
|
$this->assertSame(
|
||||||
// '1=1 AND pages.no_search = 0 AND table.field = "someValue"',
|
'1=1 AND pages.no_search = 0 AND table.field = "someValue"',
|
||||||
// $whereClause->getStatement()
|
$whereClause->getStatement()
|
||||||
// );
|
);
|
||||||
// $this->assertSame(
|
$this->assertSame(
|
||||||
// [],
|
[],
|
||||||
// $whereClause->getParameters()
|
$whereClause->getParameters()
|
||||||
// );
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -126,6 +126,7 @@ class TcaTableServiceTest extends AbstractUnitTestCase
|
||||||
*/
|
*/
|
||||||
public function allConfiguredAndAllowedTcaColumnsAreReturnedAsFields()
|
public function allConfiguredAndAllowedTcaColumnsAreReturnedAsFields()
|
||||||
{
|
{
|
||||||
|
$this->markTestIncomplete('We have to migrate this test');
|
||||||
$GLOBALS['TCA']['test_table'] = [
|
$GLOBALS['TCA']['test_table'] = [
|
||||||
'ctrl' => [
|
'ctrl' => [
|
||||||
'languageField' => 'sys_language_uid',
|
'languageField' => 'sys_language_uid',
|
||||||
|
@ -161,16 +162,16 @@ class TcaTableServiceTest extends AbstractUnitTestCase
|
||||||
);
|
);
|
||||||
$this->inject($subject, 'logger', $this->getMockedLogger());
|
$this->inject($subject, 'logger', $this->getMockedLogger());
|
||||||
|
|
||||||
// $this->assertSame(
|
$this->assertSame(
|
||||||
// [
|
[
|
||||||
// 'test_table.uid',
|
'test_table.uid',
|
||||||
// 'test_table.pid',
|
'test_table.pid',
|
||||||
// 'test_table.sys_language_uid',
|
'test_table.sys_language_uid',
|
||||||
// 'test_table.available_column',
|
'test_table.available_column',
|
||||||
// ],
|
],
|
||||||
// $subject->getFields(),
|
$subject->getFields(),
|
||||||
// ''
|
''
|
||||||
// );
|
);
|
||||||
unset($GLOBALS['TCA']['test_table']);
|
unset($GLOBALS['TCA']['test_table']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue