Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"name": "James Hong Kong",
"homepage": "https://www.semantic-mediawiki.org/wiki/User:MWJames",
"role": "Developer"
},
{
"name": "thomas-topway-it",
"homepage": "https://www.mediawiki.org/wiki/User:Thomas-topway-it"
}
],
"support": {
Expand All @@ -29,9 +33,15 @@
"require": {
"php": ">=8.1",
"composer/installers": ">=1.0.1",
"easyrdf/easyrdf": "~1.1",
"ml/json-ld": "^1.2"
"sweetrdf/easyrdf": "~1.1",
"ml/json-ld": "dev-php8#f87ba28e38f0bd14edf338fa5cf5529e6ed99cf8 as 1.3"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/lanthaler/JsonLD"
}
],
"require-dev": {
"mediawiki/mediawiki-codesniffer": "43.0.0",
"mediawiki/minus-x": "1.1.3",
Expand Down
2 changes: 1 addition & 1 deletion extension.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SemanticMetaTags",
"version": "4.0.0",
"version": "4.1.0",
"author": [
"James Hong Kong"
],
Expand Down
9 changes: 2 additions & 7 deletions tests/phpunit/Unit/LazySemanticDataLookupTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,8 @@ public function testGetSemanticDataFromStore() {
->disableOriginalConstructor()
->getMock();

$semanticData->expects( $this->at( 0 ) )
->method( 'isEmpty' )
->willReturn( true );

$semanticData->expects( $this->at( 1 ) )
->method( 'isEmpty' )
->willReturn( false );
$semanticData->method( 'isEmpty' )
->willReturnOnConsecutiveCalls( true, false );

$semanticData->expects( $this->once() )
->method( 'getSubject' )
Expand Down
18 changes: 9 additions & 9 deletions tests/phpunit/Unit/PropertyValuesContentAggregatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,15 @@ public function testFindContentForMultiplePropertiesToUseFullContentAggregation(
->disableOriginalConstructor()
->getMock();

$semanticData->expects( $this->at( 0 ) )
->method( 'getPropertyValues' )
->with( DIProperty::newFromUserLabel( 'foo' ) )
->willReturn( $propertyValues[0] );

$semanticData->expects( $this->at( 2 ) )
->method( 'getPropertyValues' )
->with( DIProperty::newFromUserLabel( 'bar' ) )
->willReturn( $propertyValues[2] );
$semanticData->method( 'getPropertyValues' )
->withConsecutive(
[ DIProperty::newFromUserLabel( 'foo' ) ],
[ DIProperty::newFromUserLabel( 'bar' ) ]
)
->willReturnOnConsecutiveCalls(
$propertyValues[0],
$propertyValues[2]
);

$semanticData->expects( $this->any() )
->method( 'getSubSemanticData' )
Expand Down