[CLEANUP] Clean up functional tests 48/29848/3
authorFelix Oertel <felix@oer.tel>
Sun, 4 May 2014 11:45:11 +0000 (13:45 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 6 May 2014 16:50:12 +0000 (18:50 +0200)
To allow running of all functional tests, instead of
relying on travis.yml, we want to clean up broken and
abandoned tests.

So we remove the tests that fatal because they are not
meant to be used in the functional testing framework.

Resolves: #58445
Releases: 6.2
Change-Id: I8fd021a9814dec43f71200641c9ba1ebbc0e32d0
Reviewed-on: https://review.typo3.org/29848
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Jan Helke
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/core/Tests/Functional/Resource/BaseTestCase.php [deleted file]
typo3/sysext/core/Tests/Functional/Resource/Driver/LocalDriverTest.php [deleted file]
typo3/sysext/core/Tests/Functional/Resource/FolderTest.php [deleted file]
typo3/sysext/core/Tests/Functional/Resource/ResourceStorageTest.php [deleted file]
typo3/sysext/dbal/Tests/Functional/ClassImplementationRegistrationTest.php [deleted file]

diff --git a/typo3/sysext/core/Tests/Functional/Resource/BaseTestCase.php b/typo3/sysext/core/Tests/Functional/Resource/BaseTestCase.php
deleted file mode 100644 (file)
index 6760d1e..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<?php
-namespace TYPO3\CMS\Core\Tests\Functional\Resource;
-
-/***************************************************************
- *  Copyright notice
- *
- *  (c) 2012-2013 Andreas Wolf <andreas.wolf@typo3.org>
- *  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.
- *  A copy is found in the text file GPL.txt and important notices to the license
- *  from the author is found in LICENSE.txt distributed with these scripts.
- *
- *
- *  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!
- ***************************************************************/
-
-/**
- * Basic functional test class for the File Abstraction Layer (FAL).
- *
- * @author Andreas Wolf <andreas.wolf@typo3.org>
- */
-class BaseTestCase extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
-       public function getStorageObject() {
-               $this->initializeVfs();
-               $resourceFactory = new \TYPO3\CMS\Core\Resource\ResourceFactory();
-               return $resourceFactory->createStorageObject(array(
-                       'driver' => 'Local'
-               ), array('basePath' => $this->getMountRootUrl()));
-       }
-}
diff --git a/typo3/sysext/core/Tests/Functional/Resource/Driver/LocalDriverTest.php b/typo3/sysext/core/Tests/Functional/Resource/Driver/LocalDriverTest.php
deleted file mode 100644 (file)
index b3c4313..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-<?php
-namespace TYPO3\CMS\Core\Tests\Functional\Resource\Driver;
-
-/***************************************************************
- *  Copyright notice
- *
- *  (c) 2011-2013 Andreas Wolf <andreas.wolf@ikt-werk.de>
- *  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.
- *  A copy is found in the text file GPL.txt and important notices to the license
- *  from the author is found in LICENSE.txt distributed with these scripts.
- *
- *
- *  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!
- ***************************************************************/
-
-use TYPO3\CMS\Core\Utility\GeneralUtility;
-
-require_once __DIR__ . '/../BaseTestCase.php';
-
-/**
- * Test case
- */
-class LocalDriverTest extends \TYPO3\CMS\Core\Tests\Functional\Resource\BaseTestCase {
-
-       /**
-        * Set up
-        */
-       public function setUp() {
-               $this->markTestIncomplete('needs to be fixed');
-       }
-
-       /**
-        * @test
-        */
-       public function foldersCanBeCopiedWithinSameStorage() {
-               $fileContents1 = uniqid();
-               $fileContents2 = uniqid();
-               $this->addToMount(array(
-                       'targetFolder' => array(),
-                       'sourceFolder' => array(
-                               'subFolder' => array(
-                                       'file' => $fileContents1
-                               ),
-                               'file' => $fileContents2
-                       )
-               ));
-               $fixture = $this->createDriverFixture(
-                       array(
-                               'basePath' => $this->getMountRootUrl()
-                       )
-               );
-               $sourceFolder = $this->getSimpleFolderMock('/sourceFolder/');
-               $targetFolder = $this->getSimpleFolderMock('/targetFolder/');
-               $fixture->copyFolderWithinStorage($sourceFolder, $targetFolder, 'sourceFolder');
-               $this->assertTrue($fixture->folderExists('/targetFolder/sourceFolder/'));
-               $this->assertTrue($fixture->fileExists('/targetFolder/sourceFolder/file'));
-               $this->assertTrue($fixture->folderExists('/targetFolder/sourceFolder/subFolder/'));
-               $this->assertTrue($fixture->fileExists('/targetFolder/sourceFolder/subFolder/file'));
-       }
-
-       /**
-        * @test
-        */
-       public function folderNameCanBeChangedWhileCopying() {
-               $fileContents1 = uniqid();
-               $fileContents2 = uniqid();
-               $this->addToMount(array(
-                       'targetFolder' => array(),
-                       'sourceFolder' => array(
-                               'subFolder' => array(
-                                       'file' => $fileContents1
-                               ),
-                               'file' => $fileContents2
-                       )
-               ));
-               $fixture = $this->createDriverFixture(
-                       array(
-                               'basePath' => $this->getMountRootUrl()
-                       )
-               );
-               $sourceFolder = $this->getSimpleFolderMock('/sourceFolder/');
-               $targetFolder = $this->getSimpleFolderMock('/targetFolder/');
-               $fixture->copyFolderWithinStorage($sourceFolder, $targetFolder, 'newFolder');
-               $this->assertTrue($fixture->folderExists('/targetFolder/newFolder/'));
-               $this->assertTrue($fixture->fileExists('/targetFolder/newFolder/file'));
-               $this->assertFalse($fixture->folderExists('/targetFolder/sourceFolder/'));
-       }
-
-       /**
-        * Creates a driver fixture object, optionally using a given mount object.
-        *
-        * IMPORTANT: Call this only after setting up the virtual file system (with the addTo* methods)!
-        *
-        * @param $driverConfiguration
-        * @param \TYPO3\CMS\Core\Resource\ResourceStorage $storageObject
-        * @param array $mockedDriverMethods
-        * @return \TYPO3\CMS\Core\Resource\Driver\LocalDriver
-        */
-       protected function createDriverFixture($driverConfiguration, \TYPO3\CMS\Core\Resource\ResourceStorage $storageObject = NULL, $mockedDriverMethods = array()) {
-               $this->initializeVfs();
-               if ($storageObject == NULL) {
-                       $storageObject = $this->getMock('TYPO3\\CMS\\Core\\Resource\\ResourceStorage', array(), array(), '', FALSE);
-               }
-               if (count($mockedDriverMethods) == 0) {
-                       $driver = new \TYPO3\CMS\Core\Resource\Driver\LocalDriver($driverConfiguration);
-               } else {
-                       $driver = $this->getMock('TYPO3\\CMS\\Core\\Resource\\Driver\\LocalDriver', $mockedDriverMethods, array($driverConfiguration));
-               }
-               $storageObject->setDriver($driver);
-               $driver->setStorage($storageObject);
-               $driver->processConfiguration();
-               $driver->initialize();
-               return $driver;
-       }
-}
diff --git a/typo3/sysext/core/Tests/Functional/Resource/FolderTest.php b/typo3/sysext/core/Tests/Functional/Resource/FolderTest.php
deleted file mode 100644 (file)
index ec9727c..0000000
+++ /dev/null
@@ -1,218 +0,0 @@
-<?php
-namespace TYPO3\CMS\Core\Tests\Functional\Resource;
-
-/***************************************************************
- *  Copyright notice
- *
- *  (c) 2012-2013 Andreas Wolf <andreas.wolf@typo3.org>
- *  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.
- *  A copy is found in the text file GPL.txt and important notices to the license
- *  from the author is found in LICENSE.txt distributed with these scripts.
- *
- *
- *  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!
- ***************************************************************/
-
-use TYPO3\CMS\Core\Resource;
-
-/**
- * Functional test case for the FAL folder class.
- *
- * @author Andreas Wolf <andreas.wolf@typo3.org>
- */
-class FolderTest extends BaseTestCase {
-
-       /**
-        * Set up
-        */
-       public function setUp() {
-               $this->markTestIncomplete('needs to be fixed');
-       }
-
-       /**
-        * Helper method for testing restore of filters in the storage
-        *
-        * @param $filterMode
-        * @param $listCallback
-        */
-       protected function _testFileAndFoldernameFilterRestoreAfterList($filterMode, $listCallback) {
-               $this->isType('callable')->evaluate($listCallback);
-               $storageFilter = new \TYPO3\CMS\Core\Resource\Filter\FileExtensionFilter();
-               $storageFilter->setAllowedFileExtensions('jpg,png');
-               $folderFilter = new \TYPO3\CMS\Core\Resource\Filter\FileExtensionFilter();
-               $folderFilter->setAllowedFileExtensions('png');
-
-               $storageObject = $this->getStorageObject();
-               $storageObject->setFileAndFolderNameFilters(array(array($storageFilter, 'filterFileList')));
-               $folder = $storageObject->getRootLevelFolder();
-               $folder->setFileAndFolderNameFilters(array(array($storageFilter, 'filterFileList')));
-
-               $filtersBackup = $storageObject->getFileAndFolderNameFilters();
-               $listCallback($folder, $filterMode);
-
-               $this->assertEquals($filtersBackup, $storageObject->getFileAndFolderNameFilters());
-       }
-
-
-       /***********************
-        * Tests for getFiles()
-        ***********************/
-
-       /**
-        * @test
-        */
-       public function getFilesRestoresFileAndFoldernameFiltersOfStorageAfterFetchingFileListIfFilterModeIsUseOwnFilters() {
-               $this->_testFileAndFoldernameFilterRestoreAfterList(\TYPO3\CMS\Core\Resource\Folder::FILTER_MODE_USE_OWN_FILTERS,
-                       function(Resource\Folder $folder, $filterMode) {
-                               $folder->getFiles(0, 0, $filterMode);
-                       }
-               );
-       }
-
-       /**
-        * @test
-        */
-       public function getFilesRestoresFileAndFoldernameFiltersOfStorageAfterFetchingFileListIfFilterModeIsUseOwnAndStorageFiltersAndFiltersHaveBeenSetInFolder() {
-               $this->_testFileAndFoldernameFilterRestoreAfterList(\TYPO3\CMS\Core\Resource\Folder::FILTER_MODE_USE_OWN_AND_STORAGE_FILTERS,
-                       function(Resource\Folder $folder, $filterMode) {
-                               $folder->getFiles(0, 0, $filterMode);
-                       }
-               );
-       }
-
-       /**
-        * @test
-        */
-       public function getFilesRespectsSetFileAndFoldernameFiltersIfFilterModeIsUseOwnFilters() {
-               $filter = new \TYPO3\CMS\Core\Resource\Filter\FileExtensionFilter();
-               $filter->setAllowedFileExtensions('jpg,png');
-
-               $this->addToMount(array('somefile.png' => '', 'somefile.jpg' => '', 'somefile.exe' => ''));
-               $storageObject = $this->getStorageObject();
-               $folder = $storageObject->getRootLevelFolder();
-               $folder->setFileAndFolderNameFilters(array(array($filter, 'filterFileList')));
-
-               $fileList = $folder->getFiles(0, 0, \TYPO3\CMS\Core\Resource\Folder::FILTER_MODE_USE_OWN_FILTERS);
-
-               $this->assertArrayNotHasKey('somefile.exe', $fileList);
-               $this->assertCount(2, $fileList);
-       }
-
-       /**
-        * @test
-        */
-       public function getFilesMergesSetFileAndFoldernameFiltersIntoStoragesFiltersIfFilterModeIsUseOwnAndStorageFilters() {
-               $foldersFilter = new \TYPO3\CMS\Core\Resource\Filter\FileExtensionFilter();
-               $foldersFilter->setAllowedFileExtensions('jpg,png');
-               $storagesFilter = new \TYPO3\CMS\Core\Resource\Filter\FileExtensionFilter();
-               $storagesFilter->setDisallowedFileExtensions('png');
-
-               $this->addToMount(array('somefile.png' => '', 'somefile.jpg' => '', 'somefile.exe' => ''));
-               $storageObject = $this->getStorageObject();
-               $storageObject->setFileAndFolderNameFilters(array(array($storagesFilter, 'filterFileList')));
-               $folder = $storageObject->getRootLevelFolder();
-               $folder->setFileAndFolderNameFilters(array(array($foldersFilter, 'filterFileList')));
-
-               $fileList = $folder->getFiles(0, 0, \TYPO3\CMS\Core\Resource\Folder::FILTER_MODE_USE_OWN_AND_STORAGE_FILTERS);
-
-               $this->assertArrayNotHasKey('somefile.exe', $fileList);
-               $this->assertArrayNotHasKey('somefile.png', $fileList);
-               $this->assertCount(1, $fileList);
-       }
-
-       /**
-        * @test
-        */
-       public function getFilesUsesOnlyFileAndFoldernameFiltersOfStorageIfNoFiltersAreSetAndFilterModeIsUseOwnAndStorageFilters() {
-               $filter = new \TYPO3\CMS\Core\Resource\Filter\FileExtensionFilter();
-               $filter->setAllowedFileExtensions('jpg,png');
-
-               $this->addToMount(array('somefile.png' => '', 'somefile.jpg' => '', 'somefile.exe' => ''));
-               $storageObject = $this->getStorageObject();
-               $folder = $storageObject->getRootLevelFolder();
-               $storageObject->setFileAndFolderNameFilters(array(array($filter, 'filterFileList')));
-
-               $fileList = $folder->getFiles(0, 0, \TYPO3\CMS\Core\Resource\Folder::FILTER_MODE_USE_OWN_AND_STORAGE_FILTERS);
-
-               $this->assertArrayNotHasKey('somefile.exe', $fileList);
-               $this->assertCount(2, $fileList);
-       }
-
-       /**
-        * @test
-        */
-       public function getFilesIgnoresSetFileAndFoldernameFiltersIfFilterModeIsSetToUseStorageFilters() {
-               $filter = new \TYPO3\CMS\Core\Resource\Filter\FileExtensionFilter();
-               $filter->setAllowedFileExtensions('jpg,png');
-
-               $this->addToMount(array('somefile.png' => '', 'somefile.jpg' => '', 'somefile.exe' => ''));
-               $storageObject = $this->getStorageObject();
-               $folder = $storageObject->getRootLevelFolder();
-               $folder->setFileAndFolderNameFilters(array(array($filter, 'filterFileList')));
-
-               $fileList = $folder->getFiles(0, 0, \TYPO3\CMS\Core\Resource\Folder::FILTER_MODE_USE_STORAGE_FILTERS);
-
-               $this->assertCount(3, $fileList);
-       }
-
-
-       /****************************
-        * Tests for getSubfolders()
-        ****************************/
-
-       /**
-        * @test
-        */
-       public function getSubfoldersRestoresFileAndFoldernameFiltersOfStorageAfterFetchingFolderListIfFilterModeIsUseOwnFilters() {
-               $this->_testFileAndFoldernameFilterRestoreAfterList(\TYPO3\CMS\Core\Resource\Folder::FILTER_MODE_USE_OWN_FILTERS,
-                       function(Resource\Folder $folder, $filterMode) {
-                               $folder->getSubfolders(0, 0, $filterMode);
-                       }
-               );
-       }
-
-       /**
-        * @test
-        */
-       public function getSubfoldersRestoresFileAndFoldernameFiltersOfStorageAfterFetchingFolderListIfFilterModeIsUseOwnAndStorageFiltersAndFiltersHaveBeenSetInFolder() {
-               $this->_testFileAndFoldernameFilterRestoreAfterList(\TYPO3\CMS\Core\Resource\Folder::FILTER_MODE_USE_OWN_AND_STORAGE_FILTERS,
-                       function(Resource\Folder $folder, $filterMode) {
-                               $folder->getSubfolders(0, 0, $filterMode);
-                       }
-               );
-       }
-
-       /**
-        * @test
-        */
-       public function getSubfoldersRespectsSetFileAndFoldernameFiltersIfFilterModeIsUseOwnFilters() {
-               \TYPO3\CMS\Core\Resource\Filter\FileNameFilter::setShowHiddenFilesAndFolders(FALSE);
-
-               $this->addToMount(array('.hiddenFolder' => array(), 'someFolder' => array(), 'anotherFolder' => array()));
-               $storageObject = $this->getStorageObject();
-               $storageObject->setFileAndFolderNameFilters(array());
-               $folder = $storageObject->getRootLevelFolder();
-               $folder->setFileAndFolderNameFilters(array(array('TYPO3\\CMS\\Core\\Resource\\Filter\\FileNameFilter', 'filterHiddenFilesAndFolders')));
-
-               $folderList = $folder->getSubfolders(0, 0, \TYPO3\CMS\Core\Resource\Folder::FILTER_MODE_USE_OWN_FILTERS);
-
-               $this->assertArrayNotHasKey('.hiddenFolder', $folderList);
-               $this->assertCount(2, $folderList);
-       }
-
-       // TODO implement the other tests from getFiles
-}
diff --git a/typo3/sysext/core/Tests/Functional/Resource/ResourceStorageTest.php b/typo3/sysext/core/Tests/Functional/Resource/ResourceStorageTest.php
deleted file mode 100644 (file)
index 8cb170d..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php
-namespace TYPO3\CMS\Core\Tests\Functional\Resource;
-
-/***************************************************************
- *  Copyright notice
- *
- *  (c) 2012-2013 Andreas Wolf <andreas.wolf@ikt-werk.de>
- *  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.
- *  A copy is found in the text file GPL.txt and important notices to the license
- *  from the author is found in LICENSE.txt distributed with these scripts.
- *
- *
- *  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!
- ***************************************************************/
-
-/**
- * Functional test case for the FAL Storage.
- *
- * @author Andreas Wolf <andreas.wolf@ikt-werk.de>
- */
-class ResourceStorageTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
-
-       /**
-        * @var \TYPO3\CMS\Core\Resource\ResourceStorage
-        */
-       protected $fixture;
-
-       /**
-        * Set up
-        */
-       public function setUp() {
-               $this->markTestIncomplete('needs to be fixed');
-       }
-
-       protected function prepareFixture() {
-               $this->initializeVfs();
-               $driver = new \TYPO3\CMS\Core\Resource\Driver\LocalDriver(array('pathType' => 'absolute', 'basePath' => $this->getMountRootUrl()));
-               $driver->initialize();
-               $this->fixture = new \TYPO3\CMS\Core\Resource\ResourceStorage($driver, array());
-       }
-
-       /**
-        * Test if the default filters filter out hidden files (like .htaccess)
-        *
-        * @test
-        */
-       public function fileListingsDoNotContainHiddenFilesWithDefaultFilters() {
-
-               // we cannot use fixture->createFile() because touch() does not work with vfsStream
-               $this->addToMount(array('someFile' => '', '.someHiddenFile' => ''));
-               $this->prepareFixture();
-               $this->fixture->resetFileAndFolderNameFiltersToDefault();
-               $fileList = $this->fixture->getFileList('/');
-               $this->assertContains('someFile', array_keys($fileList));
-               $this->assertNotContains('.someHiddenFile', array_keys($fileList));
-       }
-
-       /**
-        * Test if the default filters filter out hidden folders (like .htaccess)
-        *
-        * @test
-        */
-       public function folderListingsDoNotContainHiddenFoldersByDefault() {
-               $this->addToMount(array('someFolder' => array(), '.someHiddenFolder' => array()));
-               $this->prepareFixture();
-               $this->fixture->resetFileAndFolderNameFiltersToDefault();
-               $folderList = $this->fixture->getFolderList('/');
-               $this->assertContains('someFolder', array_keys($folderList));
-               $this->assertNotContains('.someHiddenFolder', array_keys($folderList));
-       }
-
-}
diff --git a/typo3/sysext/dbal/Tests/Functional/ClassImplementationRegistrationTest.php b/typo3/sysext/dbal/Tests/Functional/ClassImplementationRegistrationTest.php
deleted file mode 100644 (file)
index 4a47d58..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-<?php
-namespace TYPO3\CMS\Dbal\Tests\Functional;
-
-/***************************************************************
- *  Copyright notice
- *
- *  (c) 2012-2013 Christian Kuhn <lolli@schwarzbu.ch>
- *  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.
- *  A copy is found in the text file GPL.txt and important notices to the license
- *  from the author is found in LICENSE.txt distributed with these scripts.
- *
- *
- *  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!
- ***************************************************************/
-
-/**
- * Test that class implementations registered by dbal are loaded or instantiated correctly
- */
-class ClassImplementationRegistrationTest extends \TYPO3\CMS\Core\Tests\FunctionalTestCase {
-
-       /**
-        * @test
-        */
-       public function globalsTypo3DbIsInstanceOfDbalDatabaseConnection() {
-               $this->assertInstanceOf(
-                       'TYPO3\\CMS\\Dbal\\Database\\DatabaseConnection',
-                       $GLOBALS['TYPO3_DB']
-               );
-       }
-
-       /**
-        * @test
-        */
-       public function makeInstanceReturnsInstanceOfDbalSqlParserForSqlParser() {
-               $this->assertInstanceOf(
-                       'TYPO3\\CMS\\Dbal\\Database\\SqlParser',
-                       \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Database\\SqlParser')
-               );
-       }
-
-       /**
-        * @test
-        */
-       public function makeInstanceReturnsInstanceOfDbalDatabaseRecordListForDatabaseRecordList() {
-               $this->assertInstanceOf(
-                       'TYPO3\\CMS\\Dbal\\RecordList\\DatabaseRecordList',
-                       \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Recordlist\\RecordList\\DatabaseRecordList')
-               );
-       }
-}