Skip to content

Commit 7e29717

Browse files
Timo HundTimo Hund
authored andcommitted
[TASK] Prepare version 2.1.0
This commit contains: * Set version to 2.1.0 * Adapt travis setup to test against TYPO3 9 and 10 * Update the compatible TYPO3 versions in ext_emconf.php
1 parent 5686827 commit 7e29717

File tree

8 files changed

+30
-48
lines changed

8 files changed

+30
-48
lines changed

.travis.yml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: php
22

33
php:
4-
- 7.0
5-
- 7.1
64
- 7.2
5+
- 7.3
6+
- 7.4
77

88
sudo: true
99

@@ -17,36 +17,22 @@ env:
1717
- TYPO3_DATABASE_HOST="localhost"
1818
- TYPO3_DATABASE_USERNAME="root"
1919
- TYPO3_DATABASE_PASSWORD=""
20-
- EXT_SOLR_VERSION="dev-release-9.0.x"
20+
- EXT_SOLR_VERSION="dev-release-11.0.x"
2121
matrix:
22-
- TYPO3_VERSION="^8.7.0"
2322
- TYPO3_VERSION="^9.5.0"
23+
- TYPO3_VERSION="^10.4.0"
2424
- TYPO3_VERSION="dev-master"
2525

2626
matrix:
2727
fast_finish: true
2828
allow_failures:
2929
- env: TYPO3_VERSION="dev-master"
30-
php: 7.2
31-
- env: TYPO3_VERSION="dev-master"
32-
php: 7.1
33-
- env: TYPO3_VERSION="dev-master"
34-
php: 7.0
3530
exclude:
36-
- php: 7.0
37-
env: TYPO3_VERSION="^9.5.0"
38-
- php: 7.1
39-
env: TYPO3_VERSION="^9.5.0"
40-
- php: 7.1
41-
env: TYPO3_VERSION="dev-master"
42-
- php: 7.0
43-
env: TYPO3_VERSION="dev-master"
4431

4532
before_install:
4633
- composer self-update
4734
- composer --version
4835
- composer global require fabpot/php-cs-fixer
49-
- composer global require namelesscoder/typo3-repository-client
5036

5137
install:
5238
- Build/Test/bootstrap.sh

Build/Test/bootstrap.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,7 @@ echo "Using extension path $EXTENSION_ROOTPATH"
5353
echo "Using package path $TYPO3_PATH_PACKAGES"
5454
echo "Using web path $TYPO3_PATH_WEB"
5555

56-
if [[ $TYPO3_VERSION = *"master"* || $TYPO3_VERSION = *"9"* ]]; then
57-
composer require --dev --update-with-dependencies typo3/cms-core="$TYPO3_VERSION" typo3/cms-backend="$TYPO3_VERSION" typo3/cms-fluid="$TYPO3_VERSION" typo3/cms-frontend="$TYPO3_VERSION" typo3/cms-extbase="$TYPO3_VERSION" typo3/cms-reports="$TYPO3_VERSION" typo3/cms-scheduler="$TYPO3_VERSION" typo3/cms-tstemplate="$TYPO3_VERSION"
58-
else
59-
composer require --dev typo3/cms="$TYPO3_VERSION"
60-
fi
61-
62-
composer require --dev apache-solr-for-typo3/solr="$EXT_SOLR_VERSION"
56+
composer require --dev --update-with-dependencies typo3/cms-core="$TYPO3_VERSION" typo3/cms-backend="$TYPO3_VERSION" typo3/cms-fluid="$TYPO3_VERSION" typo3/cms-frontend="$TYPO3_VERSION" typo3/cms-extbase="$TYPO3_VERSION" typo3/cms-reports="$TYPO3_VERSION" typo3/cms-scheduler="$TYPO3_VERSION" typo3/cms-tstemplate="$TYPO3_VERSION" apache-solr-for-typo3/solr="$EXT_SOLR_VERSION"
6357

6458
# Restore composer.json
6559
git checkout composer.json

Documentation/Settings.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[general]
22

33
project = ApacheSolrForTypo3 EXT:solrfluidgrouping
4-
version = 2.0.0
5-
release = 2.0.0
4+
version = 2.1.0
5+
release = 2.1.0
66
t3author = Timo Hund
77
copyright = 2019
88

Documentation/Settings.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
conf.py:
77
copyright: 2019
88
project: Documentation for EXT:solrfluidgrouping grouping for solr results
9-
version: 2.0.0
10-
release: 2.0.0
9+
version: 2.1.0
10+
release: 2.1.0
1111
extensions:
1212
- sphinx.ext.intersphinx
1313
- t3sphinx.ext.t3extras

Documentation/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@
6262
# built documents.
6363
#
6464
# The short X.Y version.
65-
version = '2.0.0'
65+
version = '2.1.0'
6666
# The full version, including alpha/beta/rc tags.
67-
release = '2.0.0'
67+
release = '2.1.0'
6868

6969
# The language for content autogenerated by Sphinx. Refer to documentation
7070
# for a list of supported languages.

Tests/Unit/Domain/Search/ResultSet/SearchResultSetServiceTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Grouping\Group;
1818
use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\Result\Parser\ResultParserRegistry;
19+
use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSet;
1920
use ApacheSolrForTypo3\Solr\Domain\Search\ResultSet\SearchResultSetService;
2021
use ApacheSolrForTypo3\Solr\Domain\Search\SearchRequest;
2122
use ApacheSolrForTypo3\Solr\Search;
@@ -24,6 +25,8 @@
2425
use ApacheSolrForTypo3\Solr\Tests\Unit\UnitTest;
2526
use ApacheSolrForTypo3\Solrfluidgrouping\Domain\Search\ResultSet\Grouping\Parser\GroupedResultParser;
2627
use TYPO3\CMS\Core\Utility\GeneralUtility;
28+
use TYPO3\CMS\Extbase\Object\ObjectManager;
29+
use TYPO3\CMS\Extbase\Object\ObjectManagerInterface;
2730

2831
/**
2932
* This processor is used to transform the solr response into a
@@ -81,12 +84,20 @@ public function canCreateGroups()
8184

8285
/** @var $searchResultSetService SearchResultSetService */
8386
$searchResultSetService = $this->getMockBuilder(SearchResultSetService::class)->setMethods(['doASearch'])->setConstructorArgs([$typoScriptConfiguration, $searchMock])->getMock();
87+
$objectManagerMock = $this->getDumbMock(ObjectManagerInterface::class);
88+
89+
$searchResultSet = new SearchResultSet();
90+
$objectManagerMock->expects($this->once())->method('get')->willReturn($searchResultSet);
91+
92+
$searchResultSetService->injectObjectManager($objectManagerMock);
8493
$searchResultSetService->expects($this->once())->method('doASearch')->will($this->returnValue($fakeResponse));
8594

8695
$fakeRequest = $this->getDumbMock(SearchRequest::class);
8796
$fakeRequest->expects($this->any())->method('getResultsPerPage')->willReturn(10);
8897
$fakeRequest->expects($this->any())->method('getContextTypoScriptConfiguration')->will($this->returnValue($typoScriptConfiguration));
8998
$fakeRequest->expects($this->any())->method('getAdditionalFilters')->willReturn([]);
99+
$searchResultSet->setUsedSearchRequest($fakeRequest);
100+
90101
$searchResultSet = $searchResultSetService->search($fakeRequest);
91102

92103
$this->assertSame(1, $searchResultSet->getSearchResults()->getGroups()->getCount(), 'There should be 1 Groups of search results');

composer.json

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,11 @@
2323
},
2424
"require": {
2525
"php": ">=7.0.0",
26-
"typo3/cms-core": ">=8.7.0"
26+
"typo3/cms-core": ">=9.5.0"
2727
},
2828
"require-dev": {
29-
"phpunit/phpunit": "6.0.0",
30-
"nimut/testing-framework": "^4.0.0"
31-
},
32-
"replace": {
33-
"typo3-ter/solrfluidgrouping": "self.version"
29+
"phpunit/phpunit": "^6.0 || ^7.5.6 || ^8",
30+
"nimut/testing-framework": "^5.0.0"
3431
},
3532
"autoload": {
3633
"psr-4": {
@@ -57,14 +54,11 @@
5754
},
5855
"extra": {
5956
"branch-alias": {
60-
"dev-master": "2.0.x-dev"
57+
"dev-master": "2.1.x-dev"
6158
},
6259
"typo3/cms": {
6360
"cms-package-dir": "{$vendor-dir}/typo3/cms",
6461
"web-dir": ".Build/Web"
65-
},
66-
"typo3/class-alias-loader": {
67-
"always-add-alias-loader": true
6862
}
6963
}
7064
}

ext_emconf.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$EM_CONF[$_EXTKEY] = array(
33
'title' => 'Apache Solr for TYPO3 - Grouping for fluid rendering',
44
'description' => 'This addon provides the grouping for the fluid templating',
5-
'version' => '2.0.0',
5+
'version' => '2.1.0',
66
'state' => 'stable',
77
'category' => 'plugin',
88
'author' => 'Timo Hund, Frans Saris',
@@ -17,14 +17,11 @@
1717
'depends' => array(
1818
'scheduler' => '',
1919
'solr' => '9.0.0-',
20-
'extbase' => '8.7.0-9.5.99',
21-
'fluid' => '8.7.0-9.5.99',
22-
'typo3' => '8.7.0-9.5.99'
20+
'extbase' => '8.7.0-10.4.99',
21+
'fluid' => '8.7.0-10.4.99',
22+
'typo3' => '8.7.0-10.4.99'
2323
),
2424
'conflicts' => array(),
25-
'suggests' => array(
26-
'devlog' => '',
27-
),
2825
),
2926
'autoload' => array(
3027
'psr-4' => array(

0 commit comments

Comments
 (0)