Initial commit

This commit is contained in:
2018-04-02 08:07:38 +02:00
commit 7330c1ed3e
2054 changed files with 405203 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
namespace FluidTYPO3\Vhs\Tests\Unit\ViewHelpers\Content;
/*
* This file is part of the FluidTYPO3/Vhs project under GPLv2 or later.
*
* For the full copyright and license information, please read the
* LICENSE.md file that was distributed with this source code.
*/
use FluidTYPO3\Vhs\Tests\Unit\ViewHelpers\AbstractViewHelperTest;
/**
* @protection off
* @author Claus Due <claus@namelesscoder.net>
* @package Vhs
*/
class GetViewHelperTest extends AbstractViewHelperTest {
public function testRender() {
$this->assertEmpty($this->executeViewHelper());
}
}

View File

@@ -0,0 +1,24 @@
<?php
namespace FluidTYPO3\Vhs\Tests\Unit\ViewHelpers\Content;
/*
* This file is part of the FluidTYPO3/Vhs project under GPLv2 or later.
*
* For the full copyright and license information, please read the
* LICENSE.md file that was distributed with this source code.
*/
use FluidTYPO3\Vhs\Tests\Unit\ViewHelpers\AbstractViewHelperTest;
/**
* @protection off
* @author Claus Due <claus@namelesscoder.net>
* @package Vhs
*/
class InfoViewHelperTest extends AbstractViewHelperTest {
public function testRender() {
$this->assertEmpty($this->executeViewHelper());
}
}

View File

@@ -0,0 +1,24 @@
<?php
namespace FluidTYPO3\Vhs\Tests\Unit\ViewHelpers\Content\Random;
/*
* This file is part of the FluidTYPO3/Vhs project under GPLv2 or later.
*
* For the full copyright and license information, please read the
* LICENSE.md file that was distributed with this source code.
*/
use FluidTYPO3\Vhs\Tests\Unit\ViewHelpers\AbstractViewHelperTest;
/**
* @protection on
* @author Claus Due <claus@namelesscoder.net>
* @package Vhs
*/
class GetViewHelperTest extends AbstractViewHelperTest {
public function testRender() {
$this->assertEmpty($this->executeViewHelper());
}
}

View File

@@ -0,0 +1,24 @@
<?php
namespace FluidTYPO3\Vhs\Tests\Unit\ViewHelpers\Content\Random;
/*
* This file is part of the FluidTYPO3/Vhs project under GPLv2 or later.
*
* For the full copyright and license information, please read the
* LICENSE.md file that was distributed with this source code.
*/
use FluidTYPO3\Vhs\Tests\Unit\ViewHelpers\AbstractViewHelperTest;
/**
* @protection on
* @author Claus Due <claus@namelesscoder.net>
* @package Vhs
*/
class RenderViewHelperTest extends AbstractViewHelperTest {
public function testRender() {
$this->assertEmpty($this->executeViewHelper());
}
}

View File

@@ -0,0 +1,24 @@
<?php
namespace FluidTYPO3\Vhs\Tests\Unit\ViewHelpers\Content;
/*
* This file is part of the FluidTYPO3/Vhs project under GPLv2 or later.
*
* For the full copyright and license information, please read the
* LICENSE.md file that was distributed with this source code.
*/
use FluidTYPO3\Vhs\Tests\Unit\ViewHelpers\AbstractViewHelperTest;
/**
* @protection off
* @author Claus Due <claus@namelesscoder.net>
* @package Vhs
*/
class RenderViewHelperTest extends AbstractViewHelperTest {
public function testRender() {
$this->assertEmpty($this->executeViewHelper());
}
}

View File

@@ -0,0 +1,32 @@
<?php
namespace FluidTYPO3\Vhs\Tests\Unit\ViewHelpers\Content\Resources;
/*
* This file is part of the FluidTYPO3/Vhs project under GPLv2 or later.
*
* For the full copyright and license information, please read the
* LICENSE.md file that was distributed with this source code.
*/
use FluidTYPO3\Vhs\Tests\Unit\ViewHelpers\AbstractViewHelperTest;
/**
* @protection on
* @author Claus Due <claus@namelesscoder.net>
* @package Vhs
*/
class FalViewHelperTest extends AbstractViewHelperTest {
public function testRender() {
$GLOBALS['TYPO3_DB'] = $this->getMock(
'TYPO3\\CMS\\Core\\Database\\DatabaseConnection',
array('fullQuoteStr', 'exec_SELECTquery', 'sql_fetch_assoc'),
array(), '', FALSE
);
$GLOBALS['TYPO3_DB']->expects($this->any())->method('fullQuoteStr')->willReturnArgument(0);
$GLOBALS['TYPO3_DB']->expects($this->any())->method('exec_SELECTquery')->willReturn(NULL);
$GLOBALS['TYPO3_DB']->expects($this->any())->method('sql_fetch_assoc')->willReturn(array());
$this->assertEmpty($this->executeViewHelper());
}
}

View File

@@ -0,0 +1,25 @@
<?php
namespace FluidTYPO3\Vhs\Tests\Unit\ViewHelpers\Content;
/*
* This file is part of the FluidTYPO3/Vhs project under GPLv2 or later.
*
* For the full copyright and license information, please read the
* LICENSE.md file that was distributed with this source code.
*/
use FluidTYPO3\Vhs\Tests\Unit\ViewHelpers\AbstractViewHelperTest;
/**
* @protection off
* @author Claus Due <claus@namelesscoder.net>
* @package Vhs
*/
class ResourcesViewHelperTest extends AbstractViewHelperTest {
public function testRenderFailsWithoutFieldArgument() {
$this->setExpectedException('TYPO3\CMS\Fluid\Core\ViewHelper\Exception', 'The "field" argument was not found');
$this->executeViewHelper();
}
}