Skip to content

Commit ad1d098

Browse files
committed
Version 7.0.4
1 parent eee9069 commit ad1d098

File tree

6 files changed

+48
-39
lines changed

6 files changed

+48
-39
lines changed

Documentation/ChangeLog/Index.rst

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,16 +145,20 @@ Version 5.2:
145145

146146
Version 6.0.0:
147147
- Breaking: support for direct_mail removed. Instead, support for the extension "mail" added.
148+
148149
- Breaking: TypoScript settings dmUnsubscribeMode, module_sys_dmail_html, module_sys_dmail_category renamed to
149-
unsubscribeMode, html, categoryOrGroup. See chapter Administrator / Updating to version 6.x.
150+
unsubscribeMode, html, categoryOrGroup. See chapter Administrator / Updating to version 6.x.
150151

151152
Version 6.1.0:
152153
- Compatibility to TYPO3 11.5 added again.
154+
153155
- Bugfix: language added to the links in the email.
154156

155157
Version 6.2.0:
156158
- fe_users can now be used with the extension luxletter or mail.
159+
157160
- deleteMode 3 added: delete only categories (Mail) or user-group (Luxletter).
161+
158162
- New setting: newsletterExtension (mail or luxletter).
159163

160164
Version 6.3.0:
@@ -169,13 +173,21 @@ Version 6.3.2:
169173
Version 6.4.0:
170174
- Additional fields can now be copied from the log-entry to the tt_address-table. Setting additionalTtAddressFields added.
171175

172-
Version 7.0.0:
176+
Version 7.0.0/1:
173177
- Refactoring with the rector tool.
178+
174179
- Adding of the language code to the email text.
180+
175181
- TypoScript-files have now the ending .typoscript.
182+
176183
- setting dontAppendL is now deprecated.
184+
177185
- Bugfix: search in all folders now for mail-unsubscription and edit too.
178186

179187
Version 7.0.3:
180188
- Bugfix: backend preview.
181-
- Bugfix: Plugin-Updater.
189+
190+
- Bugfix: Plugin-Updater.
191+
192+
Version 7.0.4:
193+
- Unnecessary sql-fields removed.

Documentation/Localization.de_DE/ChangeLog/Index.rst

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,20 @@ Version 5.2:
143143

144144
Version 6.0.0:
145145
- Breaking: der Support für direct_mail wurde entfernt. Stattdessen wird nun die Extension "mail" unterstützt.
146+
146147
- Breaking: die TypoScript-settings dmUnsubscribeMode, module_sys_dmail_html, module_sys_dmail_category wurden umbenannt zu
147-
unsubscribeMode, html, categoryOrGroup. Siehe Kapitel Administrator / Updaten auf version 6.x.
148+
unsubscribeMode, html, categoryOrGroup. Siehe Kapitel Administrator / Updaten auf version 6.x.
148149

149150
Version 6.1.0:
150151
- Kompatibilität zu TYPO3 11.5 erneut hinzugefügt.
152+
151153
- Bugfix: Sprache zu den Links in den E-Mails hinzugefügt.
152154

153155
Version 6.2.0:
154156
- fe_users kann nun mit der Extension Luxletter oder Mail benutzt werden.
157+
155158
- deleteMode 3 hinzugefügt: lösche nur Kategorien (Mail) oder Benutzergruppe (Luxletter).
159+
156160
- Neue Einstellungsmöglichkeit: newsletterExtension (mail oder luxletter).
157161

158162
Version 6.3.0:
@@ -167,13 +171,21 @@ Version 6.3.2:
167171
Version 6.4.0:
168172
- Zusätzliche Felder können nun aus dem Log-Eintrag in eine tt_address-Tabelle kopiert werden. Setting additionalTtAddressFields hinzugefügt.
169173

170-
Version 7.0.1:
174+
Version 7.0.0/1:
171175
- Refactoring mit dem rector-Tool.
176+
172177
- Der Sprach-Code wird nun bei f:translate in den E-Mail-Templates hinzugefügt.
178+
173179
- TypoScript-Dateien haben nun die Endung .typoscript.
180+
174181
- Die setting dontAppendL ist nun deprecated.
182+
175183
- Bugfix: Suche in allen Ordners greift nun öfters.
176184

177185
Version 7.0.3:
178186
- Bugfix: Backend-Vorschau.
179-
- Bugfix: Plugin-Updater.
187+
188+
- Bugfix: Plugin-Updater.
189+
190+
Version 7.0.4:
191+
- Unnötige SQL-Felder entfernt.

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# fp_newsletter
22

3-
Version 7.0.3
3+
Version 7.0.4
44

55
The TYPO3 extension fp_newsletter is designed to provide a newsletter subscription and unsubscription service for the
66
table tt_address which can be used by the extension mail OR for the table fe_users which can be used by luxletter or mail.
@@ -26,4 +26,7 @@ Version 7.0.0/1:
2626

2727
Version 7.0.2/3:
2828
- Bugfix: backend preview.
29-
- Bugfix: Plugin-Updater.
29+
- Bugfix: Plugin-Updater.
30+
31+
Version 7.0.4:
32+
- Unnecessary sql-fields removed.

Tests/Unit/Controller/LogControllerTest.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<?php
22
namespace Fixpunkt\FpNewsletter\Tests\Unit\Controller;
33

4-
use TYPO3\CMS\Core\Tests\UnitTestCase;
4+
use PHPUnit\Framework\MockObject\MockObject;
5+
use TYPO3\TestingFramework\Core\AccessibleObjectInterface;
6+
use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
7+
use TYPO3Fluid\Fluid\View\ViewInterface;
58
use Fixpunkt\FpNewsletter\Controller\LogController;
6-
use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
79
use Fixpunkt\FpNewsletter\Domain\Repository\LogRepository;
810
use Fixpunkt\FpNewsletter\Domain\Model\Log;
911
/**
@@ -28,6 +30,7 @@ protected function setUp()
2830

2931
protected function tearDown()
3032
{
33+
parent::tearDown();
3134
}
3235

3336
/**
@@ -41,18 +44,16 @@ public function listActionFetchesAllLogsFromRepositoryAndAssignsThemToView()
4144
->getMock();
4245

4346
$logRepository = $this->getMockBuilder(LogRepository::class)
44-
->setMethods(['findAll'])
47+
->onlyMethods(['findAll'])
4548
->disableOriginalConstructor()
4649
->getMock();
4750
$logRepository->expects(self::once())->method('findAll')->will(self::returnValue($allLogs));
48-
$this->inject($this->subject, 'logRepository', $logRepository);
51+
$this->subject->_set('logRepository', $logRepository);
4952

50-
// TODO
51-
/*
52-
$view = $this->getMockBuilder(\TYPO3\CMS\Extbase\Mvc\View\ViewInterface::class)->getMock();
53+
$view = $this->getMockBuilder(ViewInterface::class)->getMock();
5354
$view->expects(self::once())->method('assign')->with('logs', $allLogs);
54-
$this->inject($this->subject, 'view', $view);
55-
*/
55+
$this->subject->_set('view', $view);
56+
5657
$this->subject->listAction();
5758
}
5859

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'author' => 'Kurt Gusbeth',
1818
'author_company' => 'fixpunkt für digitales GmbH',
1919
'state' => 'stable',
20-
'version' => '7.0.3',
20+
'version' => '7.0.4',
2121
'constraints' => [
2222
'depends' => [
2323
'typo3' => '11.5.0-12.4.99'

ext_tables.sql

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
#
44
CREATE TABLE tx_fpnewsletter_domain_model_log (
55

6-
uid int(11) DEFAULT '0' NOT NULL auto_increment,
7-
pid int(11) DEFAULT '0' NOT NULL,
8-
96
gender int(11) DEFAULT '0' NOT NULL,
107
title varchar(255) DEFAULT '' NOT NULL,
118
firstname varchar(255) DEFAULT '' NOT NULL,
@@ -28,22 +25,6 @@ CREATE TABLE tx_fpnewsletter_domain_model_log (
2825
www varchar(255) DEFAULT '' NOT NULL,
2926
position varchar(255) DEFAULT '' NOT NULL,
3027
company varchar(255) DEFAULT '' NOT NULL,
31-
categories varchar(255) DEFAULT '' NOT NULL,
32-
33-
tstamp int(11) unsigned DEFAULT '0' NOT NULL,
34-
crdate int(11) unsigned DEFAULT '0' NOT NULL,
35-
cruser_id int(11) unsigned DEFAULT '0' NOT NULL,
36-
deleted tinyint(4) unsigned DEFAULT '0' NOT NULL,
37-
hidden tinyint(4) unsigned DEFAULT '0' NOT NULL,
38-
39-
sys_language_uid int(11) DEFAULT '0' NOT NULL,
40-
l10n_parent int(11) DEFAULT '0' NOT NULL,
41-
l10n_diffsource mediumblob,
42-
43-
PRIMARY KEY (uid),
44-
KEY parent (pid),
45-
KEY language (l10n_parent,sys_language_uid)
46-
47-
);
28+
categories varchar(255) DEFAULT '' NOT NULL
4829

49-
## EXTENSION BUILDER DEFAULTS END TOKEN - Everything BEFORE this line is overwritten with the defaults of the extension builder
30+
);

0 commit comments

Comments
 (0)