TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest Class Reference
Inheritance diagram for TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 setUp ()
 
 tearDown ()
 
 extractHyperLinksDoesNotReturnNonExistingLocalPath ()
 
 extractHyperLinksReturnsCorrectFileUsingT3Vars ()
 
 extractHyperLinksRecurnsCorrectPathWithBaseUrl ()
 
 extractHyperLinksFindsCorrectPathWithAbsolutePath ()
 
 extractHyperLinksFindsCorrectPathForPathWithinTypo3Directory ()
 
 extractHyperLinksFindsCorrectPathUsingAbsRefPrefix ()
 
 extractBaseHrefExtractsBaseHref ()
 
 typoSearchTagsRemovesBodyContentOutsideMarkers ()
 
 typoSearchTagsHandlesMultipleMarkerPairs ()
 

Protected Attributes

 $fixture = NULL
 
 $temporaryFileName = ''
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! This class contains unit tests for the indexer

Author
Dmitry Dulepov dmitr.nosp@m.y.du.nosp@m.lepov.nosp@m.@gma.nosp@m.il.co.nosp@m.m
Christian Kuhn lolli.nosp@m.@sch.nosp@m.warzb.nosp@m.u.ch

Definition at line 23 of file IndexerTest.php.

Member Function Documentation

◆ extractBaseHrefExtractsBaseHref()

TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest::extractBaseHrefExtractsBaseHref ( )
Test:

Definition at line 128 of file IndexerTest.php.

References $result.

◆ extractHyperLinksDoesNotReturnNonExistingLocalPath()

TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest::extractHyperLinksDoesNotReturnNonExistingLocalPath ( )
Test:

Definition at line 59 of file IndexerTest.php.

References $result, and TYPO3\CMS\Core\Tests\BaseTestCase\getUniqueId().

◆ extractHyperLinksFindsCorrectPathForPathWithinTypo3Directory()

TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest::extractHyperLinksFindsCorrectPathForPathWithinTypo3Directory ( )
Test:

Definition at line 104 of file IndexerTest.php.

References $result.

◆ extractHyperLinksFindsCorrectPathUsingAbsRefPrefix()

TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest::extractHyperLinksFindsCorrectPathUsingAbsRefPrefix ( )

◆ extractHyperLinksFindsCorrectPathWithAbsolutePath()

TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest::extractHyperLinksFindsCorrectPathWithAbsolutePath ( )
Test:

Definition at line 94 of file IndexerTest.php.

References $result.

◆ extractHyperLinksRecurnsCorrectPathWithBaseUrl()

TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest::extractHyperLinksRecurnsCorrectPathWithBaseUrl ( )

◆ extractHyperLinksReturnsCorrectFileUsingT3Vars()

TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest::extractHyperLinksReturnsCorrectFileUsingT3Vars ( )

◆ setUp()

TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest::setUp ( )

Sets up the test

Definition at line 42 of file IndexerTest.php.

◆ tearDown()

TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest::tearDown ( )

Explicitly clean up the indexer object to prevent any memory leaks

Definition at line 49 of file IndexerTest.php.

◆ typoSearchTagsHandlesMultipleMarkerPairs()

TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest::typoSearchTagsHandlesMultipleMarkerPairs ( )

Tests whether indexer can extract content between multiple pairs of "TYPO3SEARCH" markers

Test:

Definition at line 182 of file IndexerTest.php.

References $result.

◆ typoSearchTagsRemovesBodyContentOutsideMarkers()

TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest::typoSearchTagsRemovesBodyContentOutsideMarkers ( )

Tests whether indexer can extract content between "TYPO3SEARCH_begin" and "TYPO3SEARCH_end" markers

Test:

Definition at line 140 of file IndexerTest.php.

References $result.

Member Data Documentation

◆ $fixture

TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest::$fixture = NULL
protected

Definition at line 30 of file IndexerTest.php.

◆ $temporaryFileName

TYPO3\CMS\IndexedSearch\Tests\Unit\IndexerTest::$temporaryFileName = ''
protected

Definition at line 37 of file IndexerTest.php.