Skip to content

Commit 361c465

Browse files
Merge pull request #97 from Knowledge-Wiki/update-libraries
Update libraries and version
2 parents c88da65 + 6364c92 commit 361c465

File tree

4 files changed

+24
-19
lines changed

4 files changed

+24
-19
lines changed

composer.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
"name": "James Hong Kong",
1818
"homepage": "https://www.semantic-mediawiki.org/wiki/User:MWJames",
1919
"role": "Developer"
20+
},
21+
{
22+
"name": "thomas-topway-it",
23+
"homepage": "https://www.mediawiki.org/wiki/User:Thomas-topway-it"
2024
}
2125
],
2226
"support": {
@@ -29,9 +33,15 @@
2933
"require": {
3034
"php": ">=8.1",
3135
"composer/installers": ">=1.0.1",
32-
"easyrdf/easyrdf": "~1.1",
33-
"ml/json-ld": "^1.2"
36+
"sweetrdf/easyrdf": "~1.1",
37+
"ml/json-ld": "dev-php8#f87ba28e38f0bd14edf338fa5cf5529e6ed99cf8 as 1.3"
3438
},
39+
"repositories": [
40+
{
41+
"type": "vcs",
42+
"url": "https://github.com/lanthaler/JsonLD"
43+
}
44+
],
3545
"require-dev": {
3646
"mediawiki/mediawiki-codesniffer": "43.0.0",
3747
"mediawiki/minus-x": "1.1.3",

extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "SemanticMetaTags",
3-
"version": "4.0.0",
3+
"version": "4.1.0",
44
"author": [
55
"James Hong Kong"
66
],

tests/phpunit/Unit/LazySemanticDataLookupTest.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,8 @@ public function testGetSemanticDataFromStore() {
6767
->disableOriginalConstructor()
6868
->getMock();
6969

70-
$semanticData->expects( $this->at( 0 ) )
71-
->method( 'isEmpty' )
72-
->willReturn( true );
73-
74-
$semanticData->expects( $this->at( 1 ) )
75-
->method( 'isEmpty' )
76-
->willReturn( false );
70+
$semanticData->method( 'isEmpty' )
71+
->willReturnOnConsecutiveCalls( true, false );
7772

7873
$semanticData->expects( $this->once() )
7974
->method( 'getSubject' )

tests/phpunit/Unit/PropertyValuesContentAggregatorTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,15 +173,15 @@ public function testFindContentForMultiplePropertiesToUseFullContentAggregation(
173173
->disableOriginalConstructor()
174174
->getMock();
175175

176-
$semanticData->expects( $this->at( 0 ) )
177-
->method( 'getPropertyValues' )
178-
->with( DIProperty::newFromUserLabel( 'foo' ) )
179-
->willReturn( $propertyValues[0] );
180-
181-
$semanticData->expects( $this->at( 2 ) )
182-
->method( 'getPropertyValues' )
183-
->with( DIProperty::newFromUserLabel( 'bar' ) )
184-
->willReturn( $propertyValues[2] );
176+
$semanticData->method( 'getPropertyValues' )
177+
->withConsecutive(
178+
[ DIProperty::newFromUserLabel( 'foo' ) ],
179+
[ DIProperty::newFromUserLabel( 'bar' ) ]
180+
)
181+
->willReturnOnConsecutiveCalls(
182+
$propertyValues[0],
183+
$propertyValues[2]
184+
);
185185

186186
$semanticData->expects( $this->any() )
187187
->method( 'getSubSemanticData' )

0 commit comments

Comments
 (0)