Merge pull request #10 from SkillDisplay/task/change-extkey

[BUGFIX] Use more precise extension key
This commit is contained in:
Markus Klein 2021-01-29 11:37:38 +01:00 committed by GitHub
commit 1ee52d852b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
35 changed files with 68 additions and 71 deletions

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace SkillDisplay\Typo3Extension\Backend; namespace SkillDisplay\SkilldisplayContent\Backend;
/* /*
* Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de>

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace SkillDisplay\Typo3Extension\Frontend\DataProcessing; namespace SkillDisplay\SkilldisplayContent\Frontend\DataProcessing;
/* /*
* Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de>

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace SkillDisplay\Typo3Extension\Frontend\DataProcessing; namespace SkillDisplay\SkilldisplayContent\Frontend\DataProcessing;
/* /*
* Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de>

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace SkillDisplay\Typo3Extension; namespace SkillDisplay\SkilldisplayContent;
/* /*
* Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de>

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace SkillDisplay\Typo3Extension; namespace SkillDisplay\SkilldisplayContent;
use SkillDisplay\PHPToolKit\Entity\Campaign; use SkillDisplay\PHPToolKit\Entity\Campaign;

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace SkillDisplay\Typo3Extension\ViewHelpers\Verification; namespace SkillDisplay\SkilldisplayContent\ViewHelpers\Verification;
/* /*
* Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de>
@ -24,7 +24,7 @@ namespace SkillDisplay\Typo3Extension\ViewHelpers\Verification;
*/ */
use SkillDisplay\PHPToolKit\Verification\Link; use SkillDisplay\PHPToolKit\Verification\Link;
use SkillDisplay\Typo3Extension\ViewHelpers\VerificationViewHelper; use SkillDisplay\SkilldisplayContent\ViewHelpers\VerificationViewHelper;
use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\GeneralUtility;
class ButtonViewHelper extends VerificationViewHelper class ButtonViewHelper extends VerificationViewHelper

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace SkillDisplay\Typo3Extension\ViewHelpers\Verification; namespace SkillDisplay\SkilldisplayContent\ViewHelpers\Verification;
/* /*
* Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de>
@ -24,7 +24,7 @@ namespace SkillDisplay\Typo3Extension\ViewHelpers\Verification;
*/ */
use SkillDisplay\PHPToolKit\Verification\Link; use SkillDisplay\PHPToolKit\Verification\Link;
use SkillDisplay\Typo3Extension\ViewHelpers\VerificationViewHelper; use SkillDisplay\SkilldisplayContent\ViewHelpers\VerificationViewHelper;
use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\GeneralUtility;
class UrlViewHelper extends VerificationViewHelper class UrlViewHelper extends VerificationViewHelper

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace SkillDisplay\Typo3Extension\ViewHelpers; namespace SkillDisplay\SkilldisplayContent\ViewHelpers;
/* /*
* Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de>
@ -27,7 +27,6 @@ use SkillDisplay\PHPToolKit\Verification\Link;
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface; use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper; use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic; use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic;
use TYPO3\CMS\Core\Utility\GeneralUtility;
abstract class VerificationViewHelper extends AbstractViewHelper abstract class VerificationViewHelper extends AbstractViewHelper
{ {

View file

@ -1 +1 @@
@import 'EXT:skilldisplay/Configuration/PageTSconfig/Mod/Wizards/*.tsconfig' @import 'EXT:skilldisplay_content/Configuration/PageTSconfig/Mod/Wizards/*.tsconfig'

View file

@ -1,6 +1,6 @@
mod { mod {
wizards.newContentElement.wizardItems.skilldisplay { wizards.newContentElement.wizardItems.skilldisplay {
header = LLL:EXT:skilldisplay/Resources/Private/Language/locallang_be.xlf:newContentElement.skilldisplay.header header = LLL:EXT:skilldisplay_content/Resources/Private/Language/locallang_be.xlf:newContentElement.skilldisplay.header
show = * show = *
} }
} }

View file

@ -3,13 +3,13 @@ mod {
elements { elements {
skilldisplay_skills { skilldisplay_skills {
iconIdentifier = skilldisplay-skill iconIdentifier = skilldisplay-skill
title = LLL:EXT:skilldisplay/Resources/Private/Language/locallang_tca.xlf:tt_content.skilldisplay_skills title = LLL:EXT:skilldisplay_content/Resources/Private/Language/locallang_tca.xlf:tt_content.skilldisplay_skills
description = LLL:EXT:skilldisplay/Resources/Private/Language/locallang_be.xlf:newContentElement.skilldisplay.skills.description description = LLL:EXT:skilldisplay_content/Resources/Private/Language/locallang_be.xlf:newContentElement.skilldisplay.skills.description
tt_content_defValues { tt_content_defValues {
CType = skilldisplay_skills CType = skilldisplay_skills
} }
} }
} }
} }
web_layout.tt_content.preview.skilldisplay_skills = EXT:skilldisplay/Resources/Private/Templates/Backend/ContentElements/Skills.html web_layout.tt_content.preview.skilldisplay_skills = EXT:skilldisplay_content/Resources/Private/Templates/Backend/ContentElements/Skills.html
} }

View file

@ -3,13 +3,13 @@ mod {
elements { elements {
skilldisplay_skillset { skilldisplay_skillset {
iconIdentifier = skilldisplay-skillset iconIdentifier = skilldisplay-skillset
title = LLL:EXT:skilldisplay/Resources/Private/Language/locallang_tca.xlf:tt_content.skilldisplay_skillset title = LLL:EXT:skilldisplay_content/Resources/Private/Language/locallang_tca.xlf:tt_content.skilldisplay_skillset
description = LLL:EXT:skilldisplay/Resources/Private/Language/locallang_be.xlf:newContentElement.skilldisplay.skillset.description description = LLL:EXT:skilldisplay_content/Resources/Private/Language/locallang_be.xlf:newContentElement.skilldisplay.skillset.description
tt_content_defValues { tt_content_defValues {
CType = skilldisplay_skillset CType = skilldisplay_skillset
} }
} }
} }
} }
web_layout.tt_content.preview.skilldisplay_skillset = EXT:skilldisplay/Resources/Private/Templates/Backend/ContentElements/Skillset.html web_layout.tt_content.preview.skilldisplay_skillset = EXT:skilldisplay_content/Resources/Private/Templates/Backend/ContentElements/Skillset.html
} }

View file

@ -4,17 +4,17 @@ services:
autoconfigure: true autoconfigure: true
public: false public: false
SkillDisplay\Typo3Extension\: SkillDisplay\SkilldisplayContent\:
resource: '../Classes/*' resource: '../Classes/*'
SkillDisplay\Typo3Extension\Frontend\DataProcessing\: SkillDisplay\SkilldisplayContent\Frontend\DataProcessing\:
resource: '../Classes/Frontend/DataProcessing/*' resource: '../Classes/Frontend/DataProcessing/*'
public: true public: true
skilldisplay.settings: skilldisplay.settings:
class: 'SkillDisplay\PHPToolKit\Configuration\Settings' class: 'SkillDisplay\PHPToolKit\Configuration\Settings'
factory: factory:
- '@SkillDisplay\Typo3Extension\SettingsFactory' - '@SkillDisplay\SkilldisplayContent\SettingsFactory'
- 'createFromCurrentSiteConfiguration' - 'createFromCurrentSiteConfiguration'
SkillDisplay\PHPToolKit\Configuration\Settings: SkillDisplay\PHPToolKit\Configuration\Settings:
@ -37,7 +37,7 @@ services:
arguments: arguments:
$settings: '@skilldisplay.settings' $settings: '@skilldisplay.settings'
SkillDisplay\Typo3Extension\Backend\Preview: SkillDisplay\SkilldisplayContent\Backend\Preview:
public: true public: true
SkillDisplay\Typo3Extension\TcaEnhancer: SkillDisplay\Typo3Extension\TcaEnhancer:

View file

@ -36,4 +36,4 @@
], ],
], ],
]); ]);
})('skilldisplay', 'site'); })('skilldisplay_content', 'site');

View file

@ -6,4 +6,4 @@
'Configuration/TypoScript/', 'Configuration/TypoScript/',
'SkillDisplay' 'SkillDisplay'
); );
})('skilldisplay', 'sys_template'); })('skilldisplay_content', 'sys_template');

View file

@ -39,10 +39,11 @@
'config' => [ 'config' => [
'type' => 'select', 'type' => 'select',
'renderType' => 'selectSingle', 'renderType' => 'selectSingle',
'itemsProcFunc' => \SkillDisplay\Typo3Extension\TcaEnhancer::class . '->' . 'getCampaignsForTCA', 'itemsProcFunc' => \SkillDisplay\SkilldisplayContent\TcaEnhancer::class
. '->' . 'getCampaignsForTCA',
'items' => [] 'items' => []
] ]
], ],
], ],
]); ]);
})('skilldisplay', 'tt_content'); })('skilldisplay_content', 'tt_content');

View file

@ -41,7 +41,6 @@
$languagePath . $contentType, $languagePath . $contentType,
$contentType, $contentType,
'skilldisplay-skill', 'skilldisplay-skill',
'skilldisplay'
] ]
); );
})('skilldisplay', 'tt_content', 'skilldisplay_skills'); })('skilldisplay_content', 'tt_content', 'skilldisplay_skills');

View file

@ -41,7 +41,6 @@
$languagePath . $contentType, $languagePath . $contentType,
$contentType, $contentType,
'skilldisplay-skillset', 'skilldisplay-skillset',
'skilldisplay'
] ]
); );
})('skilldisplay', 'tt_content', 'skilldisplay_skillset'); })('skilldisplay_content', 'tt_content', 'skilldisplay_skillset');

View file

@ -3,7 +3,7 @@ tt_content.skilldisplay_skills {
templateName = SkillDisplaySkills templateName = SkillDisplaySkills
dataProcessing { dataProcessing {
10 = SkillDisplay\Typo3Extension\Frontend\DataProcessing\Skills 10 = SkillDisplay\SkilldisplayContent\Frontend\DataProcessing\Skills
10 { 10 {
skills.field = skilldisplay_skills skills.field = skilldisplay_skills
} }
@ -15,7 +15,7 @@ tt_content.skilldisplay_skillset {
templateName = SkillDisplaySkillSet templateName = SkillDisplaySkillSet
dataProcessing { dataProcessing {
10 = SkillDisplay\Typo3Extension\Frontend\DataProcessing\SkillSets 10 = SkillDisplay\SkilldisplayContent\Frontend\DataProcessing\SkillSets
10 { 10 {
skillSets.field = skilldisplay_skillset skillSets.field = skilldisplay_skillset
} }
@ -24,6 +24,6 @@ tt_content.skilldisplay_skillset {
page { page {
includeCSS { includeCSS {
skilldisplay = EXT:skilldisplay/Resources/Public/Css/Styles.css skilldisplay = EXT:skilldisplay_content/Resources/Public/Css/Styles.css
} }
} }

View file

@ -29,14 +29,14 @@ The TypoScript contains the rendering definition for provided content elements.
Next Step: Copy Templates or adjust template paths via TypoScript. Next Step: Copy Templates or adjust template paths via TypoScript.
In order to allow TYPO3 to find the Fluid templates for content elements, In order to allow TYPO3 to find the Fluid templates for content elements,
either add the path `EXT:skilldisplay/Resources/Private/Templates/ContentElements/` in TypoScript, e.g.:: either add the path `EXT:skilldisplay_content/Resources/Private/Templates/ContentElements/` in TypoScript, e.g.::
lib.contentElement { lib.contentElement {
partialRootPaths { partialRootPaths {
50 = EXT:skilldisplay/Resources/Private/Partials/ContentElements/ 50 = EXT:skilldisplay_content/Resources/Private/Partials/ContentElements/
} }
templateRootPaths { templateRootPaths {
50 = EXT:skilldisplay/Resources/Private/Templates/ContentElements/ 50 = EXT:skilldisplay_content/Resources/Private/Templates/ContentElements/
} }
} }

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" datatype="plaintext" original="messages" date="2020-11-27T22:38:17+01:00" product-name="skilldisplay"> <file source-language="en" datatype="plaintext" original="messages" date="2020-11-27T22:38:17+01:00" product-name="skilldisplay_content">
<body> <body>
<trans-unit id="newContentElement.skilldisplay.header" resname="newContentElement.skilldisplay.header"> <trans-unit id="newContentElement.skilldisplay.header" resname="newContentElement.skilldisplay.header">
<source>SkillDisplay</source> <source>SkillDisplay</source>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2"> <xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" datatype="plaintext" original="messages" date="2020-11-27T22:38:17+01:00" product-name="skilldisplay"> <file source-language="en" datatype="plaintext" original="messages" date="2020-11-27T22:38:17+01:00" product-name="skilldisplay_content">
<body> <body>
<trans-unit id="tt_content.CType.itemGroups.skilldisplay" resname="tt_content.CType.itemGroups.skilldisplay"> <trans-unit id="tt_content.CType.itemGroups.skilldisplay" resname="tt_content.CType.itemGroups.skilldisplay">
<source>SkillDisplay</source> <source>SkillDisplay</source>

View file

@ -22,7 +22,7 @@
<div class="sd-buttons"> <div class="sd-buttons">
<a href="{verificationUrl}" target="_blank" class="sd-button sd-learner"> <a href="{verificationUrl}" target="_blank" class="sd-button sd-learner">
<div class="sd-hint"> <div class="sd-hint">
<f:image src="{f:uri.resource(extensionName: 'skilldisplay', path: 'Images/default.svg')}" title="Not learned yet" alt="Indicates self assessment is not done yet" /> <f:image src="{f:uri.resource(extensionName: 'SkilldisplayContent', path: 'Images/default.svg')}" title="Not learned yet" alt="Indicates self assessment is not done yet" />
</div> </div>
<div class="sd-type">Self Assessment</div> <div class="sd-type">Self Assessment</div>
</a> </a>

View file

@ -1,6 +1,6 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers" xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers"
xmlns:sd="http://typo3.org/ns/SkillDisplay/Typo3Extension/ViewHelpers" xmlns:sd="http://typo3.org/ns/SkillDisplay/SkilldisplayContent/ViewHelpers"
data-namespace-typo3-fluid="true"> data-namespace-typo3-fluid="true">
<a href="{be:uri.editRecord( <a href="{be:uri.editRecord(

View file

@ -1,6 +1,6 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers" xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers"
xmlns:sd="http://typo3.org/ns/SkillDisplay/Typo3Extension/ViewHelpers" xmlns:sd="http://typo3.org/ns/SkillDisplay/SkilldisplayContent/ViewHelpers"
data-namespace-typo3-fluid="true"> data-namespace-typo3-fluid="true">
<a href="{be:uri.editRecord( <a href="{be:uri.editRecord(

View file

@ -1,5 +1,5 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:sd="http://typo3.org/ns/SkillDisplay/Typo3Extension/ViewHelpers" xmlns:sd="http://typo3.org/ns/SkillDisplay/SkilldisplayContent/ViewHelpers"
data-namespace-typo3-fluid="true"> data-namespace-typo3-fluid="true">
<f:for each="{skillSets}" as="skillSet"> <f:for each="{skillSets}" as="skillSet">
{f:render(partial: 'VerificationBox', arguments: { {f:render(partial: 'VerificationBox', arguments: {

View file

@ -1,5 +1,5 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:sd="http://typo3.org/ns/SkillDisplay/Typo3Extension/ViewHelpers" xmlns:sd="http://typo3.org/ns/SkillDisplay/SkilldisplayContent/ViewHelpers"
data-namespace-typo3-fluid="true"> data-namespace-typo3-fluid="true">
<f:for each="{skills}" as="skill"> <f:for each="{skills}" as="skill">
{f:render(partial: 'VerificationBox', arguments: { {f:render(partial: 'VerificationBox', arguments: {

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace SkillDisplay\Typo3Extension\Tests\Unit\Backend; namespace SkillDisplay\SkilldisplayContent\Tests\Unit\Backend;
/* /*
* Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de>
@ -28,12 +28,12 @@ use SkillDisplay\PHPToolKit\Api\Skill;
use SkillDisplay\PHPToolKit\Api\SkillSet; use SkillDisplay\PHPToolKit\Api\SkillSet;
use SkillDisplay\PHPToolKit\Entity\Skill as SkillEntity; use SkillDisplay\PHPToolKit\Entity\Skill as SkillEntity;
use SkillDisplay\PHPToolKit\Entity\SkillSet as SkillSetEntity; use SkillDisplay\PHPToolKit\Entity\SkillSet as SkillSetEntity;
use SkillDisplay\Typo3Extension\Backend\Preview; use SkillDisplay\SkilldisplayContent\Backend\Preview;
use TYPO3\CMS\Backend\View\PageLayoutView; use TYPO3\CMS\Backend\View\PageLayoutView;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase; use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
/** /**
* @covers SkillDisplay\Typo3Extension\Backend\Preview * @covers SkillDisplay\SkilldisplayContent\Backend\Preview
*/ */
class PreviewTest extends TestCase class PreviewTest extends TestCase
{ {

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace SkillDisplay\Typo3Extension\Tests\Unit\Frontend\DataProcessing; namespace SkillDisplay\SkilldisplayContent\Tests\Unit\Frontend\DataProcessing;
/* /*
* Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de>
@ -26,12 +26,12 @@ namespace SkillDisplay\Typo3Extension\Tests\Unit\Frontend\DataProcessing;
use Prophecy\PhpUnit\ProphecyTrait; use Prophecy\PhpUnit\ProphecyTrait;
use SkillDisplay\PHPToolKit\Api\SkillSet; use SkillDisplay\PHPToolKit\Api\SkillSet;
use SkillDisplay\PHPToolKit\Entity\SkillSet as SkillSetEntity; use SkillDisplay\PHPToolKit\Entity\SkillSet as SkillSetEntity;
use SkillDisplay\Typo3Extension\Frontend\DataProcessing\SkillSets; use SkillDisplay\SkilldisplayContent\Frontend\DataProcessing\SkillSets;
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer; use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase; use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
/** /**
* @covers SkillDisplay\Typo3Extension\Frontend\DataProcessing\SkillSets * @covers SkillDisplay\SkilldisplayContent\Frontend\DataProcessing\SkillSets
*/ */
class SkillSetsTest extends TestCase class SkillSetsTest extends TestCase
{ {

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace SkillDisplay\Typo3Extension\Tests\Unit\Frontend\DataProcessing; namespace SkillDisplay\SkilldisplayContent\Tests\Unit\Frontend\DataProcessing;
/* /*
* Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de>
@ -26,12 +26,12 @@ namespace SkillDisplay\Typo3Extension\Tests\Unit\Frontend\DataProcessing;
use Prophecy\PhpUnit\ProphecyTrait; use Prophecy\PhpUnit\ProphecyTrait;
use SkillDisplay\PHPToolKit\Api\Skill; use SkillDisplay\PHPToolKit\Api\Skill;
use SkillDisplay\PHPToolKit\Entity\Skill as SkillEntity; use SkillDisplay\PHPToolKit\Entity\Skill as SkillEntity;
use SkillDisplay\Typo3Extension\Frontend\DataProcessing\Skills; use SkillDisplay\SkilldisplayContent\Frontend\DataProcessing\Skills;
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer; use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase; use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
/** /**
* @covers SkillDisplay\Typo3Extension\Frontend\DataProcessing\Skills * @covers SkillDisplay\SkilldisplayContent\Frontend\DataProcessing\Skills
*/ */
class SkillsTest extends TestCase class SkillsTest extends TestCase
{ {

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace SkillDisplay\Typo3Extension\Tests\Unit; namespace SkillDisplay\SkilldisplayContent\Tests\Unit;
/* /*
* Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de>
@ -25,14 +25,14 @@ namespace SkillDisplay\Typo3Extension\Tests\Unit;
use Prophecy\PhpUnit\ProphecyTrait; use Prophecy\PhpUnit\ProphecyTrait;
use SkillDisplay\PHPToolKit\Configuration\Settings; use SkillDisplay\PHPToolKit\Configuration\Settings;
use SkillDisplay\Typo3Extension\SettingsFactory; use SkillDisplay\SkilldisplayContent\SettingsFactory;
use TYPO3\CMS\Core\Http\ServerRequest; use TYPO3\CMS\Core\Http\ServerRequest;
use TYPO3\CMS\Core\Site\Entity\Site; use TYPO3\CMS\Core\Site\Entity\Site;
use TYPO3\CMS\Core\Site\SiteFinder; use TYPO3\CMS\Core\Site\SiteFinder;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase; use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
/** /**
* @covers SkillDisplay\Typo3Extension\SettingsFactory * @covers SkillDisplay\SkilldisplayContent\SettingsFactory
*/ */
class SettingsFactoryTest extends TestCase class SettingsFactoryTest extends TestCase
{ {

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace SkillDisplay\Typo3Extension\Tests\Unit\ViewHelpers\Verification; namespace SkillDisplay\SkilldisplayContent\Tests\Unit\ViewHelpers\Verification;
/* /*
* Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de>
@ -26,14 +26,14 @@ namespace SkillDisplay\Typo3Extension\Tests\Unit\ViewHelpers\Verification;
use Prophecy\PhpUnit\ProphecyTrait; use Prophecy\PhpUnit\ProphecyTrait;
use Prophecy\Prophecy\ObjectProphecy; use Prophecy\Prophecy\ObjectProphecy;
use SkillDisplay\PHPToolKit\Verification\Link; use SkillDisplay\PHPToolKit\Verification\Link;
use SkillDisplay\Typo3Extension\ViewHelpers\Verification\ButtonViewHelper; use SkillDisplay\SkilldisplayContent\ViewHelpers\Verification\ButtonViewHelper;
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface; use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase; use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
/** /**
* @covers SkillDisplay\Typo3Extension\ViewHelpers\Verification\ButtonViewHelper * @covers SkillDisplay\SkilldisplayContent\ViewHelpers\Verification\ButtonViewHelper
* @covers SkillDisplay\Typo3Extension\ViewHelpers\VerificationViewHelper * @covers SkillDisplay\SkilldisplayContent\ViewHelpers\VerificationViewHelper
*/ */
class ButtonViewHelperTest extends TestCase class ButtonViewHelperTest extends TestCase
{ {

View file

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
namespace SkillDisplay\Typo3Extension\Tests\Unit\ViewHelpers\Verification; namespace SkillDisplay\SkilldisplayContent\Tests\Unit\ViewHelpers\Verification;
/* /*
* Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de> * Copyright (C) 2020 Daniel Siepmann <coding@daniel-siepmann.de>
@ -26,14 +26,14 @@ namespace SkillDisplay\Typo3Extension\Tests\Unit\ViewHelpers\Verification;
use Prophecy\PhpUnit\ProphecyTrait; use Prophecy\PhpUnit\ProphecyTrait;
use Prophecy\Prophecy\ObjectProphecy; use Prophecy\Prophecy\ObjectProphecy;
use SkillDisplay\PHPToolKit\Verification\Link; use SkillDisplay\PHPToolKit\Verification\Link;
use SkillDisplay\Typo3Extension\ViewHelpers\Verification\UrlViewHelper; use SkillDisplay\SkilldisplayContent\ViewHelpers\Verification\UrlViewHelper;
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface; use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase; use TYPO3\TestingFramework\Core\Unit\UnitTestCase as TestCase;
/** /**
* @covers SkillDisplay\Typo3Extension\ViewHelpers\Verification\UrlViewHelper * @covers SkillDisplay\SkilldisplayContent\ViewHelpers\Verification\UrlViewHelper
* @covers SkillDisplay\Typo3Extension\ViewHelpers\VerificationViewHelper * @covers SkillDisplay\SkilldisplayContent\ViewHelpers\VerificationViewHelper
*/ */
class UrlViewHelperTest extends TestCase class UrlViewHelperTest extends TestCase
{ {

View file

@ -17,12 +17,12 @@
], ],
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"SkillDisplay\\Typo3Extension\\": "Classes/" "SkillDisplay\\SkilldisplayContent\\": "Classes/"
} }
}, },
"autoload-dev": { "autoload-dev": {
"psr-4": { "psr-4": {
"SkillDisplay\\Typo3Extension\\Tests\\": "Tests/" "SkillDisplay\\SkilldisplayContent\\Tests\\": "Tests/"
} }
}, },
"require": { "require": {
@ -49,14 +49,13 @@
"prefer-stable": true, "prefer-stable": true,
"scripts": { "scripts": {
"post-autoload-dump": [ "post-autoload-dump": [
"mkdir -p .Build/web/typo3conf/ext/", "TYPO3\\TestingFramework\\Composer\\ExtensionTestEnvironment::prepare"
"[ -L .Build/web/typo3conf/ext/skilldisplay ] || ln -snvf ../../../../. .Build/web/typo3conf/ext/skilldisplay"
] ]
}, },
"extra": { "extra": {
"typo3/cms": { "typo3/cms": {
"cms-package-dir": "{$vendor-dir}/typo3/cms", "cms-package-dir": "{$vendor-dir}/typo3/cms",
"extension-key": "skilldisplay", "extension-key": "skilldisplay_content",
"web-dir": ".Build/web" "web-dir": ".Build/web"
}, },
"branch-alias": { "branch-alias": {

View file

@ -23,5 +23,5 @@
} }
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'][$extKey] = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['tt_content_drawItem'][$extKey] =
\SkillDisplay\Typo3Extension\Backend\Preview::class; \SkillDisplay\SkilldisplayContent\Backend\Preview::class;
})('skilldisplay'); })('skilldisplay_content');