[CLEANUP] Remove abandoned functional test 95/29795/5
authorFelix Oertel <felix@oer.tel>
Sat, 3 May 2014 09:26:01 +0000 (11:26 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sat, 3 May 2014 10:40:19 +0000 (12:40 +0200)
To allow running of all functional tests, instead of relying on
travis.yml, we want to clean up broken and abandoned tests.

This one was not touched for over a year, does not work anymore
and noone really knows, if it is even suitable anymore.

Releases: 6.2
Resolves: #58446
Relates: #58445
Change-Id: Ie3926f557c0cc91d40ad4e4554f0f39de1901adf
Reviewed-on: https://review.typo3.org/29795
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Oliver Hader
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/core/Build/FunctionalTests.xml
typo3/sysext/extbase/Tests/Functional/BaseTestCase.php [deleted file]
typo3/sysext/extbase/Tests/Functional/Domain/Model/FileContextTest.php [deleted file]
typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/FileContext.php [deleted file]
typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/data_sys_file.xml [deleted file]
typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/data_sys_file_collection.xml [deleted file]
typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/data_sys_file_reference.xml [deleted file]
typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/data_sys_file_storage.xml [deleted file]

index f133bbc..1705aa3 100644 (file)
@@ -42,7 +42,7 @@
                        <directory>../../../../typo3/sysext/workspaces/Tests/Functional/Service/</directory>
                </testsuite>
                <testsuite name="EXT:extbase tests">
-                       <directory>../../../../typo3/sysext/extbase/Tests/Functional/Persistence/</directory>
+                       <directory>../../../../typo3/sysext/extbase/Tests/Functional/</directory>
                </testsuite>
        </testsuites>
 </phpunit>
diff --git a/typo3/sysext/extbase/Tests/Functional/BaseTestCase.php b/typo3/sysext/extbase/Tests/Functional/BaseTestCase.php
deleted file mode 100644 (file)
index 882fd21..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-/***************************************************************
- *  Copyright notice
- *
- *  This class is a backport of the corresponding class of TYPO3 Flow.
- *  All credits go to the TYPO3 Flow team.
- *  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!
- ***************************************************************/
-/**
- * Base database testcase for the Extbase extension.
- *
- * This base test case creates a test database and can populate
- * rows defined in fixtures to it.
- *
- * This class is used in the FAL<->extbase connection tests like
- * \TYPO3\CMS\Extbase\Tests\Functional\Domain\Model\FileContextTest. It is
- * currently marked as experimental!
- *
- * @api experimental! This class is experimental and subject to change!
- */
-abstract class Tx_Extbase_Tests_Functional_BaseTestCase extends Tx_Phpunit_Database_TestCase {
-
-       /**
-        * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface The object manager
-        */
-       protected $objectManager;
-
-       /**
-        * Injects an untainted clone of the object manager and all its referencing
-        * objects for every test.
-        *
-        * @return void
-        */
-       public function runBare() {
-               $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
-               $this->objectManager = clone $objectManager;
-               parent::runBare();
-       }
-
-       protected function setUp() {
-               $this->createDatabase();
-               $this->useTestDatabase();
-               $this->importStdDb();
-               $this->importExtensions(array('cms', 'extbase'));
-       }
-
-       protected function tearDown() {
-               $this->dropDatabase();
-       }
-}
diff --git a/typo3/sysext/extbase/Tests/Functional/Domain/Model/FileContextTest.php b/typo3/sysext/extbase/Tests/Functional/Domain/Model/FileContextTest.php
deleted file mode 100644 (file)
index 55fbd64..0000000
+++ /dev/null
@@ -1,246 +0,0 @@
-<?php
-namespace TYPO3\CMS\Extbase\Tests\Functional\Domain\Model;
-
-/***************************************************************
- * Copyright notice
- *
- * (c) 2012 Oliver Hader <oliver.hader@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.
- *
- * 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!
- ***************************************************************/
-require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('extbase') . 'Tests/Functional/Domain/Model/Fixture/FileContext.php';
-
-/**
- * Test case to check functionality type converters on FAL domain objects.
- */
-class FileContextTest extends \Tx_Extbase_Tests_Functional_BaseTestCase {
-
-       /**
-        * @var \TYPO3\CMS\Extbase\Property\PropertyMapper
-        */
-       protected $propertyMapper;
-
-       /**
-        * @var \TYPO3\CMS\Extbase\Mvc\Controller\MvcPropertyMappingConfiguration
-        */
-       protected $propertyMapperConfiguration;
-
-       /**
-        * Sets up this test suite.
-        */
-       protected function setUp() {
-               $this->markTestIncomplete('Functional tests do not work yet.');
-               parent::setUp();
-               $this->importDataSet(__DIR__ . '/Fixture/data_sys_file_storage.xml');
-               $this->importDataSet(__DIR__ . '/Fixture/data_sys_file.xml');
-               $this->importDataSet(__DIR__ . '/Fixture/data_sys_file_reference.xml');
-               $this->importDataSet(__DIR__ . '/Fixture/data_sys_file_collection.xml');
-               /** @var $configurationBuilder \TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationBuilder */
-               $configurationBuilder = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Property\\PropertyMappingConfigurationBuilder');
-               $this->propertyMapperConfiguration = $configurationBuilder->build('TYPO3\\CMS\\Extbase\\Mvc\\Controller\\MvcPropertyMappingConfiguration');
-               $this->propertyMapper = $this->objectManager->get('TYPO3\\CMS\\Extbase\\Property\\PropertyMapper');
-       }
-
-       /**
-        * Cleans up this test suite.
-        */
-       protected function tearDown() {
-               parent::tearDown();
-               unset($this->propertyMapperConfiguration);
-               unset($this->propertyMapper);
-       }
-
-       /**
-        * @test
-        */
-       public function fileObjectIsAvailable() {
-               $data = array(
-                       'file' => 1
-               );
-               /** @var $fixture \TYPO3\CMS\Extbase\Tests\Functional\Domain\Model\Fixture\FileContext */
-               $fixture = $this->propertyMapper->convert($data, 'TYPO3\\CMS\\Extbase\\Tests\\Functional\\Domain\\Model\\Fixture\\FileContext', $this->propertyMapperConfiguration);
-               $this->assertInstanceOf('TYPO3\\CMS\\Extbase\\Domain\\Model\\File', $fixture->getFile());
-               $this->assertInstanceOf('TYPO3\\CMS\\Core\\Resource\\File', $fixture->getFile()->getOriginalResource());
-               $this->assertEquals(1, $fixture->getFile()->getOriginalResource()->getUid());
-       }
-
-       /**
-        * @test
-        */
-       public function areFileObjectsAvailableFromFixture() {
-               $data = array(
-                       'files' => array(
-                               1,
-                               2
-                       )
-               );
-               /** @var $fixture \TYPO3\CMS\Extbase\Tests\Functional\Domain\Model\Fixture\FileContext */
-               $fixture = $this->propertyMapper->convert($data, 'TYPO3\\CMS\\Extbase\\Tests\\Functional\\Domain\\Model\\Fixture\\FileContext', $this->propertyMapperConfiguration);
-               $this->assertInstanceOf('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage', $fixture->getFiles());
-               $this->assertEquals(2, $fixture->getFiles()->count());
-               $fixture->getFiles()->rewind();
-               $this->assertEquals(1, $fixture->getFiles()->current()->getOriginalResource()->getUid());
-               $fixture->getFiles()->next();
-               $this->assertEquals(2, $fixture->getFiles()->current()->getOriginalResource()->getUid());
-       }
-
-       /**
-        * @test
-        */
-       public function isFileReferenceObjectAvailableFromFixture() {
-               $data = array(
-                       'fileReference' => 1
-               );
-               /** @var $fixture \TYPO3\CMS\Extbase\Tests\Functional\Domain\Model\Fixture\FileContext */
-               $fixture = $this->propertyMapper->convert($data, 'TYPO3\\CMS\\Extbase\\Tests\\Functional\\Domain\\Model\\Fixture\\FileContext', $this->propertyMapperConfiguration);
-               $this->assertInstanceOf('TYPO3\\CMS\\Extbase\\Domain\\Model\\FileReference', $fixture->getFileReference());
-               $this->assertInstanceOf('TYPO3\\CMS\\Core\\Resource\\FileReference', $fixture->getFileReference()->getOriginalResource());
-               $this->assertInstanceOf('TYPO3\\CMS\\Core\\Resource\\File', $fixture->getFileReference()->getOriginalResource()->getOriginalFile());
-               $this->assertEquals(1, $fixture->getFileReference()->getOriginalResource()->getOriginalFile()->getUid());
-       }
-
-       /**
-        * @test
-        */
-       public function areFileReferenceObjectsAvailableFromFixture() {
-               $data = array(
-                       'fileReferences' => array(
-                               1,
-                               2
-                       )
-               );
-               /** @var $fixture \TYPO3\CMS\Extbase\Tests\Functional\Domain\Model\Fixture\FileContext */
-               $fixture = $this->propertyMapper->convert($data, 'TYPO3\\CMS\\Extbase\\Tests\\Functional\\Domain\\Model\\Fixture\\FileContext', $this->propertyMapperConfiguration);
-               $this->assertInstanceOf('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage', $fixture->getFileReferences());
-               $this->assertEquals(2, $fixture->getFileReferences()->count());
-               $fixture->getFileReferences()->rewind();
-               $this->assertInstanceOf('TYPO3\\CMS\\Core\\Resource\\FileReference', $fixture->getFileReferences()->current()->getOriginalResource());
-               $this->assertInstanceOf('TYPO3\\CMS\\Core\\Resource\\File', $fixture->getFileReferences()->current()->getOriginalResource()->getOriginalFile());
-               $this->assertEquals(1, $fixture->getFileReferences()->current()->getOriginalResource()->getOriginalFile()->getUid());
-               $fixture->getFileReferences()->next();
-               $this->assertInstanceOf('TYPO3\\CMS\\Core\\Resource\\FileReference', $fixture->getFileReferences()->current()->getOriginalResource());
-               $this->assertInstanceOf('TYPO3\\CMS\\Core\\Resource\\File', $fixture->getFileReferences()->current()->getOriginalResource()->getOriginalFile());
-               $this->assertEquals(2, $fixture->getFileReferences()->current()->getOriginalResource()->getOriginalFile()->getUid());
-       }
-
-       /**
-        * @test
-        * @todo Find a way to mock the storage through all instances of Extbase
-        */
-       public function isFolderObjectAvailableFromFixture() {
-               if (!defined('TYPO3_MODE') || TYPO3_MODE !== 'BE') {
-                       $this->markTestSkipped('This test currently relies on an existing fileadmin/ storage in the filesystem.');
-               }
-               $data = array(
-                       'folder' => '9999:/'
-               );
-               /** @var $fixture \TYPO3\CMS\Extbase\Tests\Functional\Domain\Model\Fixture\FileContext */
-               $fixture = $this->propertyMapper->convert($data, 'TYPO3\\CMS\\Extbase\\Tests\\Functional\\Domain\\Model\\Fixture\\FileContext', $this->propertyMapperConfiguration);
-               $this->assertInstanceOf('TYPO3\\CMS\\Extbase\\Domain\\Model\\Folder', $fixture->getFolder());
-               $this->assertInstanceOf('TYPO3\\CMS\\Core\\Resource\\Folder', $fixture->getFolder()->getOriginalResource());
-               $this->assertEquals('/', $fixture->getFolder()->getOriginalResource()->getIdentifier());
-       }
-
-       /**
-        * @test
-        * @todo Find a way to mock the storage through all instances of Extbase
-        */
-       public function areFolderObjectsAvailableFromFixture() {
-               if (!defined('TYPO3_MODE') || TYPO3_MODE !== 'BE') {
-                       $this->markTestSkipped('This test currently relies on an existing fileadmin/ storage in the filesystem.');
-               }
-               $data = array(
-                       'folders' => array(
-                               '9999:/',
-                               '9999:/'
-                       )
-               );
-               /** @var $fixture \TYPO3\CMS\Extbase\Tests\Functional\Domain\Model\Fixture\FileContext */
-               $fixture = $this->propertyMapper->convert($data, 'TYPO3\\CMS\\Extbase\\Tests\\Functional\\Domain\\Model\\Fixture\\FileContext', $this->propertyMapperConfiguration);
-               $this->assertInstanceOf('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage', $fixture->getFolders());
-               $this->assertEquals(2, $fixture->getFolders()->count());
-               $fixture->getFolders()->rewind();
-               $this->assertInstanceOf('TYPO3\\CMS\\Extbase\\Domain\\Model\\Folder', $fixture->getFolders()->current());
-               $this->assertInstanceOf('TYPO3\\CMS\\Core\\Resource\\Folder', $fixture->getFolders()->current()->getOriginalResource());
-               $this->assertEquals('/', $fixture->getFolders()->current()->getOriginalResource()->getIdentifier());
-               $fixture->getFolders()->next();
-               $this->assertInstanceOf('TYPO3\\CMS\\Extbase\\Domain\\Model\\Folder', $fixture->getFolders()->current());
-               $this->assertInstanceOf('TYPO3\\CMS\\Core\\Resource\\Folder', $fixture->getFolders()->current()->getOriginalResource());
-               $this->assertEquals('/', $fixture->getFolders()->current()->getOriginalResource()->getIdentifier());
-       }
-
-       /**
-        * @test
-        */
-       public function isStaticFileCollectionObjectAvailableFromFixture() {
-               $data = array(
-                       'staticFileCollection' => 2
-               );
-               /** @var $fixture \TYPO3\CMS\Extbase\Tests\Functional\Domain\Model\Fixture\FileContext */
-               $fixture = $this->propertyMapper->convert($data, 'TYPO3\\CMS\\Extbase\\Tests\\Functional\\Domain\\Model\\Fixture\\FileContext', $this->propertyMapperConfiguration);
-               $this->assertInstanceOf('TYPO3\\CMS\\Extbase\\Domain\\Model\\StaticFileCollection', $fixture->getStaticFileCollection());
-               $this->assertEquals(2, $fixture->getStaticFileCollection()->getObject()->getUid());
-       }
-
-       /**
-        * @test
-        */
-       public function areStaticFileCollectionObjectsAvailableFromFixture() {
-               $data = array(
-                       'staticFileCollections' => array(
-                               2
-                       )
-               );
-               /** @var $fixture \TYPO3\CMS\Extbase\Tests\Functional\Domain\Model\Fixture\FileContext */
-               $fixture = $this->propertyMapper->convert($data, 'TYPO3\\CMS\\Extbase\\Tests\\Functional\\Domain\\Model\\Fixture\\FileContext', $this->propertyMapperConfiguration);
-               $this->assertInstanceOf('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage', $fixture->getStaticFileCollections());
-               $this->assertEquals(1, $fixture->getStaticFileCollections()->count());
-               $this->assertInstanceOf('TYPO3\\CMS\\Extbase\\Domain\\Model\\StaticFileCollection', $fixture->getStaticFileCollections()->current());
-               $this->assertEquals(2, $fixture->getStaticFileCollections()->current()->getObject()->getUid());
-       }
-
-       /**
-        * @test
-        */
-       public function isFolderBasedFileCollectionObjectAvailableFromFixture() {
-               $data = array(
-                       'folderBasedFileCollection' => 1
-               );
-               /** @var $fixture \TYPO3\CMS\Extbase\Tests\Functional\Domain\Model\Fixture\FileContext */
-               $fixture = $this->propertyMapper->convert($data, 'TYPO3\\CMS\\Extbase\\Tests\\Functional\\Domain\\Model\\Fixture\\FileContext', $this->propertyMapperConfiguration);
-               $this->assertInstanceOf('TYPO3\\CMS\\Extbase\\Domain\\Model\\FolderBasedFileCollection', $fixture->getFolderBasedFileCollection());
-               $this->assertEquals(1, $fixture->getFolderBasedFileCollection()->getObject()->getUid());
-       }
-
-       /**
-        * @test
-        */
-       public function areFolderBasedFileCollectionObjectAvailableFromFixture() {
-               $data = array(
-                       'folderBasedFileCollections' => array(
-                               1
-                       )
-               );
-               /** @var $fixture \TYPO3\CMS\Extbase\Tests\Functional\Domain\Model\Fixture\FileContext */
-               $fixture = $this->propertyMapper->convert($data, 'TYPO3\\CMS\\Extbase\\Tests\\Functional\\Domain\\Model\\Fixture\\FileContext', $this->propertyMapperConfiguration);
-               $this->assertInstanceOf('TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage', $fixture->getFolderBasedFileCollections());
-               $this->assertEquals(1, $fixture->getFolderBasedFileCollections()->count());
-               $this->assertInstanceOf('TYPO3\\CMS\\Extbase\\Domain\\Model\\FolderBasedFileCollection', $fixture->getFolderBasedFileCollections()->current());
-               $this->assertEquals(1, $fixture->getFolderBasedFileCollections()->current()->getObject()->getUid());
-       }
-}
diff --git a/typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/FileContext.php b/typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/FileContext.php
deleted file mode 100644 (file)
index a114889..0000000
+++ /dev/null
@@ -1,312 +0,0 @@
-<?php
-namespace TYPO3\CMS\Extbase\Tests\Functional\Domain\Model\Fixture;
-
-/***************************************************************
- * Copyright notice
- *
- * (c) 2012 Oliver Hader <oliver.hader@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.
- *
- * 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!
- ***************************************************************/
-/**
- * A file context object (File Abstraction Layer)
- *
- * @api
- */
-class FileContext extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
-
-       /**
-        * @var \TYPO3\CMS\Extbase\Domain\Model\File
-        */
-       protected $file;
-
-       /**
-        * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\File>
-        */
-       protected $files;
-
-       /**
-        * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
-        */
-       protected $fileReference;
-
-       /**
-        * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference>
-        */
-       protected $fileReferences;
-
-       /**
-        * @var \TYPO3\CMS\Extbase\Domain\Model\StaticFileCollection
-        */
-       protected $staticFileCollection;
-
-       /**
-        * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\StaticFileCollection>
-        */
-       protected $staticFileCollections;
-
-       /**
-        * @var \TYPO3\CMS\Extbase\Domain\Model\FolderBasedFileCollection
-        */
-       protected $folderBasedFileCollection;
-
-       /**
-        * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FolderBasedFileCollection>
-        */
-       protected $folderBasedFileCollections;
-
-       /**
-        * @var \TYPO3\CMS\Extbase\Domain\Model\Folder
-        */
-       protected $folder;
-
-       /**
-        * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\Folder>
-        */
-       protected $folders;
-
-       public function __construct() {
-               $this->files = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
-               $this->fileReferences = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
-               $this->staticFileCollections = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
-               $this->folderBasedFileCollections = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
-               $this->folders = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
-       }
-
-       /**
-        * FILE
-        */
-       /**
-        * @return \TYPO3\CMS\Extbase\Domain\Model\File
-        */
-       public function getFile() {
-               return $this->file;
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Domain\Model\File $file
-        */
-       public function setFile(\TYPO3\CMS\Extbase\Domain\Model\File $file) {
-               $this->file = $file;
-       }
-
-       /**
-        * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\File>
-        */
-       public function getFiles() {
-               return $this->files;
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\File> $files
-        */
-       public function setFiles(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $files) {
-               $this->files = $files;
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Domain\Model\File $file
-        */
-       public function addFile(\TYPO3\CMS\Extbase\Domain\Model\File $file) {
-               $this->files->attach($file);
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Domain\Model\File $file
-        */
-       public function removeFile(\TYPO3\CMS\Extbase\Domain\Model\File $file) {
-               $this->files->detach($file);
-       }
-
-       /**
-        * COLLECTION
-        */
-       /**
-        * @return \TYPO3\CMS\Extbase\Domain\Model\StaticFileCollection
-        */
-       public function getStaticFileCollection() {
-               return $this->staticFileCollection;
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Domain\Model\StaticFileCollection $staticFileCollection
-        */
-       public function setStaticFileCollection(\TYPO3\CMS\Extbase\Domain\Model\StaticFileCollection $staticFileCollection) {
-               $this->staticFileCollection = $staticFileCollection;
-       }
-
-       /**
-        * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\StaticFileCollection>
-        */
-       public function getStaticFileCollections() {
-               return $this->staticFileCollections;
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\StaticFileCollection> $staticFileCollections
-        */
-       public function setStaticFileCollections(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $staticFileCollections) {
-               $this->staticFileCollections = $staticFileCollections;
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Domain\Model\StaticFileCollection $staticFileCollection
-        */
-       public function addStaticFileCollection(\TYPO3\CMS\Extbase\Domain\Model\StaticFileCollection $staticFileCollection) {
-               $this->staticFileCollections->attach($staticFileCollection);
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Domain\Model\StaticFileCollection $staticFileCollection
-        */
-       public function removeStaticFileCollection(\TYPO3\CMS\Extbase\Domain\Model\StaticFileCollection $staticFileCollection) {
-               $this->staticFileCollections->detach($staticFileCollection);
-       }
-
-       /**
-        * @return \TYPO3\CMS\Extbase\Domain\Model\FolderBasedFileCollection
-        */
-       public function getFolderBasedFileCollection() {
-               return $this->folderBasedFileCollection;
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Domain\Model\FolderBasedFileCollection $folderBasedFileCollection
-        */
-       public function setFolderBasedFileCollection(\TYPO3\CMS\Extbase\Domain\Model\FolderBasedFileCollection $folderBasedFileCollection) {
-               $this->folderBasedFileCollection = $folderBasedFileCollection;
-       }
-
-       /**
-        * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FolderBasedFileCollection>
-        */
-       public function getFolderBasedFileCollections() {
-               return $this->folderBasedFileCollections;
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FolderBasedFileCollection> $folderBasedFileCollections
-        */
-       public function setFolderBasedFileCollections(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $folderBasedFileCollections) {
-               $this->folderBasedFileCollections = $folderBasedFileCollections;
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Domain\Model\FolderBasedFileCollection $folderBasedFileCollection
-        */
-       public function addFolderBasedFileCollection(\TYPO3\CMS\Extbase\Domain\Model\FolderBasedFileCollection $folderBasedFileCollection) {
-               $this->folderBasedFileCollections->attach($folderBasedFileCollection);
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Domain\Model\FolderBasedFileCollection $folderBasedFileCollection
-        */
-       public function removeFolderBasedFileCollection(\TYPO3\CMS\Extbase\Domain\Model\FolderBasedFileCollection $folderBasedFileCollection) {
-               $this->folderBasedFileCollections->detach($folderBasedFileCollection);
-       }
-
-       /**
-        * REFERENCE
-        */
-       /**
-        * @return \TYPO3\CMS\Extbase\Domain\Model\FileReference
-        */
-       public function getFileReference() {
-               return $this->fileReference;
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $fileReference
-        */
-       public function setFileReference(\TYPO3\CMS\Extbase\Domain\Model\FileReference $fileReference) {
-               $this->fileReference = $fileReference;
-       }
-
-       /**
-        * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference>
-        */
-       public function getFileReferences() {
-               return $this->fileReferences;
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference> $fileReferences
-        */
-       public function setFileReferences(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $fileReferences) {
-               $this->fileReferences = $fileReferences;
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $fileReference
-        */
-       public function addFileReference(\TYPO3\CMS\Extbase\Domain\Model\FileReference $fileReference) {
-               $this->fileReferences->attach($fileReference);
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $fileReference
-        */
-       public function removeFileReference(\TYPO3\CMS\Extbase\Domain\Model\FileReference $fileReference) {
-               $this->fileReferences->detach($fileReference);
-       }
-
-       /**
-        * FOLDER
-        */
-       /**
-        * @return \TYPO3\CMS\Extbase\Domain\Model\Folder
-        */
-       public function getFolder() {
-               return $this->folder;
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Domain\Model\Folder $folder
-        */
-       public function setFolder(\TYPO3\CMS\Extbase\Domain\Model\Folder $folder) {
-               $this->folder = $folder;
-       }
-
-       /**
-        * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\Folder>
-        */
-       public function getFolders() {
-               return $this->folders;
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\Folder> $folders
-        */
-       public function setFolders(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $folders) {
-               $this->folders = $folders;
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Domain\Model\Folder $folder
-        */
-       public function addFolder(\TYPO3\CMS\Extbase\Domain\Model\Folder $folder) {
-               $this->folders->attach($folder);
-       }
-
-       /**
-        * @param \TYPO3\CMS\Extbase\Domain\Model\Folder $folder
-        */
-       public function removeFolder(\TYPO3\CMS\Extbase\Domain\Model\Folder $folder) {
-               $this->folders->detach($folder);
-       }
-}
diff --git a/typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/data_sys_file.xml b/typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/data_sys_file.xml
deleted file mode 100644 (file)
index 5671d6f..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<dataset>
-       <sys_file>
-               <uid>1</uid>
-               <pid>0</pid>
-               <tstamp>1337721279</tstamp>
-               <crdate>1337721279</crdate>
-               <cruser_id>0</cruser_id>
-               <t3ver_oid>0</t3ver_oid>
-               <t3ver_id>0</t3ver_id>
-               <t3ver_wsid>0</t3ver_wsid>
-               <t3ver_label></t3ver_label>
-               <t3ver_state>0</t3ver_state>
-               <t3ver_stage>0</t3ver_stage>
-               <t3ver_count>0</t3ver_count>
-               <t3ver_tstamp>0</t3ver_tstamp>
-               <t3ver_move_id>0</t3ver_move_id>
-               <t3_origuid>0</t3_origuid>
-               <deleted>0</deleted>
-               <type>2</type>
-               <storage>9999</storage>
-               <identifier>/_test/testing.png</identifier>
-               <extension>jpeg</extension>
-               <mime_type>image/jpeg</mime_type>
-               <name>testing.png</name>
-               <sha1>b841902021bbe23bd71e4a5b5b97626da7734b90</sha1>
-               <size>39056</size>
-               <creation_date>1337721084</creation_date>
-               <modification_date>1337721081</modification_date>
-               <width>400</width>
-               <height>300</height>
-               <description></description>
-               <alternative></alternative>
-       </sys_file>
-       <sys_file>
-               <uid>2</uid>
-               <pid>0</pid>
-               <tstamp>1337721279</tstamp>
-               <crdate>1337721279</crdate>
-               <cruser_id>0</cruser_id>
-               <t3ver_oid>0</t3ver_oid>
-               <t3ver_id>0</t3ver_id>
-               <t3ver_wsid>0</t3ver_wsid>
-               <t3ver_label></t3ver_label>
-               <t3ver_state>0</t3ver_state>
-               <t3ver_stage>0</t3ver_stage>
-               <t3ver_count>0</t3ver_count>
-               <t3ver_tstamp>0</t3ver_tstamp>
-               <t3ver_move_id>0</t3ver_move_id>
-               <t3_origuid>0</t3_origuid>
-               <deleted>0</deleted>
-               <type>2</type>
-               <storage>9999</storage>
-               <identifier>/_test/testing1.png</identifier>
-               <extension>jpeg</extension>
-               <mime_type>image/jpeg</mime_type>
-               <name>testing.png</name>
-               <sha1>b841902021bbe23bd71e4a5b5b97626da7734b91</sha1>
-               <size>39056</size>
-               <creation_date>1337721084</creation_date>
-               <modification_date>1337721081</modification_date>
-               <width>400</width>
-               <height>300</height>
-               <description></description>
-               <alternative></alternative>
-       </sys_file>
-</dataset>
\ No newline at end of file
diff --git a/typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/data_sys_file_collection.xml b/typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/data_sys_file_collection.xml
deleted file mode 100644 (file)
index 9c1fc09..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<dataset>
-       <sys_file_collection>
-               <uid>1</uid>
-               <pid>1</pid>
-               <tstamp>1345234690</tstamp>
-               <crdate>1345234662</crdate>
-               <cruser_id>1</cruser_id>
-               <t3ver_oid>0</t3ver_oid>
-               <t3ver_id>0</t3ver_id>
-               <t3ver_wsid>0</t3ver_wsid>
-               <t3ver_label></t3ver_label>
-               <t3ver_state>0</t3ver_state>
-               <t3ver_stage>0</t3ver_stage>
-               <t3ver_count>0</t3ver_count>
-               <t3ver_tstamp>0</t3ver_tstamp>
-               <t3ver_move_id>0</t3ver_move_id>
-               <t3_origuid>0</t3_origuid>
-               <sys_language_uid>0</sys_language_uid>
-               <l10n_parent>0</l10n_parent>
-               <l10n_diffsource></l10n_diffsource>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <starttime>0</starttime>
-               <endtime>0</endtime>
-               <title>Collection</title>
-               <description></description>
-               <type>folder</type>
-               <files>1</files>
-               <storage>9999</storage>
-               <folder>/default/</folder>
-       </sys_file_collection>
-       <sys_file_collection>
-               <uid>2</uid>
-               <pid>1</pid>
-               <tstamp>1345234710</tstamp>
-               <crdate>1345234710</crdate>
-               <cruser_id>1</cruser_id>
-               <t3ver_oid>0</t3ver_oid>
-               <t3ver_id>0</t3ver_id>
-               <t3ver_wsid>0</t3ver_wsid>
-               <t3ver_label></t3ver_label>
-               <t3ver_state>0</t3ver_state>
-               <t3ver_stage>0</t3ver_stage>
-               <t3ver_count>0</t3ver_count>
-               <t3ver_tstamp>0</t3ver_tstamp>
-               <t3ver_move_id>0</t3ver_move_id>
-               <t3_origuid>0</t3_origuid>
-               <sys_language_uid>0</sys_language_uid>
-               <l10n_parent>0</l10n_parent>
-               <l10n_diffsource></l10n_diffsource>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <starttime>0</starttime>
-               <endtime>0</endtime>
-               <title>Collection</title>
-               <description></description>
-               <type>static</type>
-               <files>2</files>
-               <storage>0</storage>
-               <folder></folder>
-       </sys_file_collection>
-</dataset>
\ No newline at end of file
diff --git a/typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/data_sys_file_reference.xml b/typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/data_sys_file_reference.xml
deleted file mode 100644 (file)
index 5d4f027..0000000
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<dataset>
-       <sys_file_reference>
-               <uid>1</uid>
-               <pid>0</pid>
-               <tstamp>1337721280</tstamp>
-               <crdate>1337721280</crdate>
-               <cruser_id>0</cruser_id>
-               <sorting>0</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <t3ver_oid>0</t3ver_oid>
-               <t3ver_id>0</t3ver_id>
-               <t3ver_wsid>0</t3ver_wsid>
-               <t3ver_label></t3ver_label>
-               <t3ver_state>0</t3ver_state>
-               <t3ver_stage>0</t3ver_stage>
-               <t3ver_count>0</t3ver_count>
-               <t3ver_tstamp>0</t3ver_tstamp>
-               <t3ver_move_id>0</t3ver_move_id>
-               <t3_origuid>0</t3_origuid>
-               <uid_local>1</uid_local>
-               <uid_foreign>246</uid_foreign>
-               <tablenames>tt_content</tablenames>
-               <fieldname>image</fieldname>
-               <sorting_foreign>0</sorting_foreign>
-               <table_local>sys_file</table_local>
-               <title>SomeTitle</title>
-               <description>SomeDescription</description>
-               <alternative>SomeAlternative</alternative>
-               <link>http://typo3.org/</link>
-               <downloadname>SomeDownloadname</downloadname>
-       </sys_file_reference>
-       <sys_file_reference>
-               <uid>2</uid>
-               <pid>0</pid>
-               <tstamp>1337721280</tstamp>
-               <crdate>1337721280</crdate>
-               <cruser_id>0</cruser_id>
-               <sorting>0</sorting>
-               <deleted>0</deleted>
-               <hidden>0</hidden>
-               <t3ver_oid>0</t3ver_oid>
-               <t3ver_id>0</t3ver_id>
-               <t3ver_wsid>0</t3ver_wsid>
-               <t3ver_label></t3ver_label>
-               <t3ver_state>0</t3ver_state>
-               <t3ver_stage>0</t3ver_stage>
-               <t3ver_count>0</t3ver_count>
-               <t3ver_tstamp>0</t3ver_tstamp>
-               <t3ver_move_id>0</t3ver_move_id>
-               <t3_origuid>0</t3_origuid>
-               <uid_local>2</uid_local>
-               <uid_foreign>246</uid_foreign>
-               <tablenames>tt_content</tablenames>
-               <fieldname>image</fieldname>
-               <sorting_foreign>0</sorting_foreign>
-               <table_local>sys_file</table_local>
-               <title>SomeTitle</title>
-               <description>SomeDescription</description>
-               <alternative>SomeAlternative</alternative>
-               <link>http://typo3.org/</link>
-               <downloadname>SomeDownloadname</downloadname>
-       </sys_file_reference>
-</dataset>
\ No newline at end of file
diff --git a/typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/data_sys_file_storage.xml b/typo3/sysext/extbase/Tests/Functional/Domain/Model/Fixture/data_sys_file_storage.xml
deleted file mode 100644 (file)
index dfb4cae..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<dataset>
-       <sys_file_storage>
-               <uid>9999</uid>
-               <pid>0</pid>
-               <name>fileadmin/ (auto-created)</name>
-               <driver>Local</driver>
-               <configuration><![CDATA[<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
-                       <T3FlexForms>
-                               <data>
-                                       <sheet index="sDEF">
-                                               <language index="lDEF">
-                                                       <field index="basePath">
-                                                               <value index="vDEF">fileadmin/</value>
-                                                       </field>
-                                                       <field index="pathType">
-                                                               <value index="vDEF">relative</value>
-                                                       </field>
-                                               </language>
-                                       </sheet>
-                               </data>
-                       </T3FlexForms>]]>
-               </configuration>
-               <is_browsable>1</is_browsable>
-               <is_public>1</is_public>
-               <is_writable>1</is_writable>
-               <is_online>1</is_online>
-               <processingfolder></processingfolder>
-       </sys_file_storage>
-</dataset>
\ No newline at end of file