mirror of
https://github.com/Codappix/search_core.git
synced 2024-12-25 02:16:10 +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()
|
||||
{
|
||||
$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))
|
||||
->method('getIfExists')
|
||||
->withConsecutive(['indexing.table.additionalWhereClause'], ['indexing.table.rootLineBlacklist'])
|
||||
|
@ -98,7 +98,7 @@ class TcaTableServiceTest extends AbstractUnitTestCase
|
|||
*/
|
||||
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))
|
||||
->method('getIfExists')
|
||||
->withConsecutive(['indexing.table.additionalWhereClause'], ['indexing.table.rootLineBlacklist'])
|
||||
|
@ -110,15 +110,15 @@ class TcaTableServiceTest extends AbstractUnitTestCase
|
|||
|
||||
$this->subject->getRecord(10);
|
||||
|
||||
// $whereClause = $this->subject->getWhereClause();
|
||||
// $this->assertSame(
|
||||
// '1=1 AND pages.no_search = 0 AND table.field = "someValue"',
|
||||
// $whereClause->getStatement()
|
||||
// );
|
||||
// $this->assertSame(
|
||||
// [],
|
||||
// $whereClause->getParameters()
|
||||
// );
|
||||
$whereClause = $this->subject->getWhereClause();
|
||||
$this->assertSame(
|
||||
'1=1 AND pages.no_search = 0 AND table.field = "someValue"',
|
||||
$whereClause->getStatement()
|
||||
);
|
||||
$this->assertSame(
|
||||
[],
|
||||
$whereClause->getParameters()
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -126,6 +126,7 @@ class TcaTableServiceTest extends AbstractUnitTestCase
|
|||
*/
|
||||
public function allConfiguredAndAllowedTcaColumnsAreReturnedAsFields()
|
||||
{
|
||||
$this->markTestIncomplete('We have to migrate this test');
|
||||
$GLOBALS['TCA']['test_table'] = [
|
||||
'ctrl' => [
|
||||
'languageField' => 'sys_language_uid',
|
||||
|
@ -161,16 +162,16 @@ class TcaTableServiceTest extends AbstractUnitTestCase
|
|||
);
|
||||
$this->inject($subject, 'logger', $this->getMockedLogger());
|
||||
|
||||
// $this->assertSame(
|
||||
// [
|
||||
// 'test_table.uid',
|
||||
// 'test_table.pid',
|
||||
// 'test_table.sys_language_uid',
|
||||
// 'test_table.available_column',
|
||||
// ],
|
||||
// $subject->getFields(),
|
||||
// ''
|
||||
// );
|
||||
$this->assertSame(
|
||||
[
|
||||
'test_table.uid',
|
||||
'test_table.pid',
|
||||
'test_table.sys_language_uid',
|
||||
'test_table.available_column',
|
||||
],
|
||||
$subject->getFields(),
|
||||
''
|
||||
);
|
||||
unset($GLOBALS['TCA']['test_table']);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue