File tree Expand file tree Collapse file tree 4 files changed +24
-19
lines changed
Expand file tree Collapse file tree 4 files changed +24
-19
lines changed Original file line number Diff line number Diff line change 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" : {
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" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " SemanticMetaTags" ,
3- "version" : " 4.0 .0" ,
3+ "version" : " 4.1 .0" ,
44 "author" : [
55 " James Hong Kong"
66 ],
Original file line number Diff line number Diff 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 ' )
Original file line number Diff line number Diff 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 ' )
You can’t perform that action at this time.
0 commit comments