Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from Nimut/add-functional-tests
Browse files Browse the repository at this point in the history
Add basic functional tests
  • Loading branch information
helhum authored Feb 20, 2017
2 parents 59b00d2 + 31a0b37 commit e6d259a
Show file tree
Hide file tree
Showing 15 changed files with 2,053 additions and 0 deletions.
20 changes: 20 additions & 0 deletions compat/Frontend/Response.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
namespace TYPO3\CMS\Core\Tests\Functional\Framework\Frontend;

/*
* This file is part of the NIMUT testing-framework 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
* LICENSE file that was distributed with this source code.
*/

/**
* @deprecated will be removed once TYPO3 9 LTS is released
*/
class Response extends \Nimut\TestingFramework\Http\Response
{
}
20 changes: 20 additions & 0 deletions compat/Frontend/ResponseContent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
namespace TYPO3\CMS\Core\Tests\Functional\Framework\Frontend;

/*
* This file is part of the NIMUT testing-framework 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
* LICENSE file that was distributed with this source code.
*/

/**
* @deprecated will be removed once TYPO3 9 LTS is released
*/
class ResponseContent extends \Nimut\TestingFramework\Http\ResponseContent
{
}
20 changes: 20 additions & 0 deletions compat/Frontend/ResponseSection.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
namespace TYPO3\CMS\Core\Tests\Functional\Framework\Frontend;

/*
* This file is part of the NIMUT testing-framework 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
* LICENSE file that was distributed with this source code.
*/

/**
* @deprecated will be removed once TYPO3 9 LTS is released
*/
class ResponseSection extends \Nimut\TestingFramework\Http\ResponseSection
{
}
20 changes: 20 additions & 0 deletions compat/FunctionalTestCase.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
namespace TYPO3\CMS\Core\Tests;

/*
* This file is part of the NIMUT testing-framework 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
* LICENSE file that was distributed with this source code.
*/

/**
* @deprecated will be removed once TYPO3 9 LTS is released
*/
abstract class FunctionalTestCase extends \Nimut\TestingFramework\TestCase\FunctionalTestCase
{
}
20 changes: 20 additions & 0 deletions compat/FunctionalTestCaseBootstrapUtility.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php
namespace TYPO3\CMS\Core\Tests;

/*
* This file is part of the NIMUT testing-framework 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
* LICENSE file that was distributed with this source code.
*/

/**
* @deprecated will be removed once TYPO3 9 LTS is released
*/
class FunctionalTestCaseBootstrapUtility extends \Nimut\TestingFramework\Bootstrap\FunctionalTestCaseBootstrapUtility
{
}
4 changes: 4 additions & 0 deletions compat/Packages/class-alias/ClassAliasMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
return [
'TYPO3\\Components\\TestingFramework\\Core\\Exception' => \Nimut\TestingFramework\Exception\Exception::class,
'TYPO3\\Components\\TestingFramework\\Core\\FileStreamWrapper' => \Nimut\TestingFramework\File\FileStreamWrapper::class,
'TYPO3\\Components\\TestingFramework\\Core\\Functional\\Framework\\Frontend\\Response' => \Nimut\TestingFramework\Http\Response::class,
'TYPO3\\Components\\TestingFramework\\Core\\Functional\\Framework\\Frontend\\ResponseContent' => \Nimut\TestingFramework\Http\ResponseContent::class,
'TYPO3\\Components\\TestingFramework\\Core\\Functional\\Framework\\Frontend\\ResponseSection' => \Nimut\TestingFramework\Http\ResponseSection::class,
'TYPO3\\Components\\TestingFramework\\Core\\Functional\\FunctionalTestCase' => \Nimut\TestingFramework\TestCase\FunctionalTestCase::class,
'TYPO3\\Components\\TestingFramework\\Core\\Unit\\UnitTestCase' => \Nimut\TestingFramework\TestCase\UnitTestCase::class,
'TYPO3\\Components\\TestingFramework\\Fluid\\Unit\\ViewHelpers\\ViewHelperBaseTestcase' => \Nimut\TestingFramework\TestCase\ViewHelperBaseTestcase::class,
];
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"typo3/cms-core": "^6.2 || ^7.6 || ^8.0 <8.7",
"typo3/cms-extbase": "^6.2 || ^7.6 || ^8.0 <8.7",
"typo3/cms-fluid": "^6.2 || ^7.6 || ^8.0 <8.7",
"typo3/cms-install": "^6.2 || ^7.6 || ^8.0 <8.7",
"phpunit/phpunit": "^4.8 || ^5.6",
"mikey179/vfsStream": "^1.6"
},
Expand All @@ -44,6 +45,7 @@
"psr-4": {
"Nimut\\TestingFramework\\": "src/TestingFramework/",
"TYPO3\\CMS\\Core\\Tests\\": "compat/",
"TYPO3\\CMS\\Core\\Tests\\Functional\\Framework\\": "compat/",
"TYPO3\\CMS\\Fluid\\Tests\\": "compat/"
}
},
Expand Down
15 changes: 15 additions & 0 deletions res/Configuration/FunctionalTests.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<phpunit
backupGlobals="true"
backupStaticAttributes="false"
bootstrap="../../src/TestingFramework/Bootstrap/FunctionalTestsBootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="false"
processIsolation="true"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
verbose="false"
/>
25 changes: 25 additions & 0 deletions res/Fixtures/Database/be_users.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<dataset>
<be_users>
<uid>1</uid>
<pid>0</pid>
<tstamp>1366642540</tstamp>
<username>admin</username>
<password>$1$tCrlLajZ$C0sikFQQ3SWaFAZ1Me0Z/1</password> <!-- password -->
<admin>1</admin>
<disable>0</disable>
<starttime>0</starttime>
<endtime>0</endtime>
<options>0</options>
<crdate>1366642540</crdate>
<cruser_id>0</cruser_id>
<workspace_perms>1</workspace_perms>
<disableIPlock>1</disableIPlock>
<deleted>0</deleted>
<TSconfig>NULL</TSconfig>
<lastlogin>1371033743</lastlogin>
<createdByAction>0</createdByAction>
<workspace_id>0</workspace_id>
<workspace_preview>1</workspace_preview>
</be_users>
</dataset>
Loading

0 comments on commit e6d259a

Please sign in to comment.