Skip to content

Commit

Permalink
upgrade to EasyRdf 1.14.0, fixing some mocked resources
Browse files Browse the repository at this point in the history
  • Loading branch information
osma committed Dec 18, 2024
1 parent 8e720a6 commit 4f4ef63
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "MIT",
"version": "3.0-dev",
"require": {
"sweetrdf/easyrdf": "1.13.*",
"sweetrdf/easyrdf": "1.14.0",
"symfony/polyfill-php80": "1.*",
"symfony/polyfill-php81": "1.*",
"twig/twig": "3.14.*",
Expand Down
4 changes: 2 additions & 2 deletions tests/ConceptMappingPropertyValueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ public function testGetLabelWithAndWithoutLang()
$mocksource = $this->getMockBuilder('EasyRdf\Resource')->disableOriginalConstructor()->getMock();
$mockres = $this->getMockBuilder('EasyRdf\Resource')->disableOriginalConstructor()->getMock();
$labelmap = array(
array('en', 'english'),
array(null, 'default')
array('en', [], 'english'),
array(null, [], 'default')
);
$mockres->method('label')->will($this->returnValueMap($labelmap));
$mockres->method('getUri')->will($this->returnValue('http://thisdoesntexistatalland.sefsf/2j2h4/'));
Expand Down
8 changes: 4 additions & 4 deletions tests/ModelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,8 @@ public function testGetResourceLabelAcceptAnyLanguageWhenDesiredNotFound()
{
$mockres = $this->getMockBuilder('EasyRdf\Resource')->disableOriginalConstructor()->getMock();
$labelmap = array(
array('en', null),
array(null, 'test value')
array('en', [], null),
array(null, [], 'test value')
);
$mockres->method('label')->will($this->returnValueMap($labelmap));
$this->assertEquals('test value', $this->model->getResourceLabel($mockres, 'en'));
Expand All @@ -613,8 +613,8 @@ public function testGetResourceLabelCorrectLanguage()
{
$mockres = $this->getMockBuilder('EasyRdf\Resource')->disableOriginalConstructor()->getMock();
$labelmap = array(
array('en', 'test value'),
array('fi', 'testiarvo')
array('en', [], 'test value'),
array('fi', [], 'testiarvo')
);
$mockres->method('label')->will($this->returnValueMap($labelmap));
$this->assertEquals('test value', $this->model->getResourceLabel($mockres, 'en'));
Expand Down

0 comments on commit 4f4ef63

Please sign in to comment.