This repository has been archived by the owner on Dec 4, 2018. It is now read-only.
forked from fgerards/fluidcontent
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
318 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{namespace flux=FluidTYPO3\Flux\ViewHelpers} | ||
<f:layout name="Content"/> | ||
<f:section name="Configuration"> | ||
<flux:form id="error"> | ||
<flux:field.custom name="info"> | ||
|
||
<div class="alert alert-warning"> | ||
<div class="media"> | ||
<div class="media-left"> | ||
<span class="fa-stack fa-lg"> | ||
<i class="fa fa-circle fa-stack-2x"></i> | ||
<i class="fa fa-exclamation fa-stack-1x"></i> | ||
</span> | ||
</div> | ||
<div class="media-body"> | ||
<h4 class="alert-title">Warning</h4> | ||
|
||
<div class="alert-message"> | ||
<f:translate key="tt_content.tx_fed_fcefile.emptyMessageinBackend"/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</flux:field.custom> | ||
</flux:form> | ||
</f:section> | ||
|
||
<f:section name="Preview"> | ||
|
||
<div class="alert alert-warning"> | ||
<div class="media"> | ||
<div class="media-left"> | ||
<span class="fa-stack fa-lg"> | ||
<i class="fa fa-circle fa-stack-2x"></i> | ||
<i class="fa fa-exclamation fa-stack-1x"></i> | ||
</span> | ||
</div> | ||
<div class="media-body"> | ||
<h4 class="alert-title">Warning</h4> | ||
|
||
<div class="alert-message"> | ||
<f:translate key="tt_content.tx_fed_fcefile.emptyMessageinBackend"/> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</f:section> | ||
|
||
<f:section name="Main"> | ||
<div style="background:#ff0; color:#000; padding: 20px; margin:20px;"> | ||
<f:translate key="tt_content.tx_fed_fcefile.emptyMessage"/> | ||
<br> <br> Content uid: [{record.uid}] | ||
</div> | ||
</f:section> |
39 changes: 39 additions & 0 deletions
39
Tests/Unit/Backend/TableConfigurationPostProcessorTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
namespace FluidTYPO3\Fluidcontent\Tests\Unit\Backend; | ||
|
||
/* | ||
* This file is part of the FluidTYPO3/Fluidcontent 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\Fluidcontent\Backend\TableConfigurationPostProcessor; | ||
use TYPO3\CMS\Core\Tests\UnitTestCase; | ||
|
||
/** | ||
* Class TableConfigurationPostProcessorTest | ||
*/ | ||
class TableConfigurationPostProcessorTest extends UnitTestCase { | ||
|
||
/** | ||
* @test | ||
*/ | ||
public function testGetConfigurationServiceReturnsConfigurationService() { | ||
$instance = new TableConfigurationPostProcessor(); | ||
$result = $this->callInaccessibleMethod($instance, 'getConfigurationService'); | ||
$this->assertInstanceOf('FluidTYPO3\Fluidcontent\Service\ConfigurationService', $result); | ||
} | ||
|
||
/** | ||
* @test | ||
*/ | ||
public function testProcessData() { | ||
$service = $this->getMock('FluidTYPO3\Fluidcontent\Service\ConfigurationService', array('getPageTsConfig')); | ||
$service->expects($this->once())->method('getPageTsConfig')->willReturn(''); | ||
$instance = $this->getMock('FluidTYPO3\Fluidcontent\Backend\TableConfigurationPostProcessor', array('getConfigurationService')); | ||
$instance->expects($this->once())->method('getConfigurationService')->willReturn($service); | ||
$instance->processData(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.