1919class ChangeNotificationFilterTest extends \PHPUnit_Framework_TestCase {
2020
2121private $ store ;
22- private $ cachedPropertyValuesPrefetcher ;
22+ private $ propertySpecificationLookup ;
2323private $ testEnvironment ;
2424
2525protected function setUp () {
@@ -28,14 +28,14 @@ protected function setUp() {
2828->disableOriginalConstructor ()
2929->getMock ();
3030
31- $ this ->cachedPropertyValuesPrefetcher = $ this ->getMockBuilder ( '\SMW\CachedPropertyValuesPrefetcher ' )
31+ $ this ->propertySpecificationLookup = $ this ->getMockBuilder ( '\SMW\PropertySpecificationLookup ' )
3232->disableOriginalConstructor ()
3333->getMock ();
3434
3535$ this ->testEnvironment = new TestEnvironment ();
3636
3737$ this ->testEnvironment ->registerObject ( 'Store ' , $ this ->store );
38- $ this ->testEnvironment ->registerObject ( 'CachedPropertyValuesPrefetcher ' , $ this ->cachedPropertyValuesPrefetcher );
38+ $ this ->testEnvironment ->registerObject ( 'PropertySpecificationLookup ' , $ this ->propertySpecificationLookup );
3939}
4040
4141protected function tearDown () {
@@ -220,8 +220,8 @@ public function testhasChangeToNotifyAbout_ChangeNotificationForAnyValue() {
220220->method ( 'getObjectIds ' )
221221->will ( $ this ->returnValue ( $ idTable ) );
222222
223- $ this ->cachedPropertyValuesPrefetcher ->expects ( $ this ->any () )
224- ->method ( 'getPropertyValues ' )
223+ $ this ->propertySpecificationLookup ->expects ( $ this ->any () )
224+ ->method ( 'getSpecification ' )
225225->will ( $ this ->returnValue ( array ( new DIBlob ( '+ ' ) ) ) ); //Any value
226226
227227$ compositePropertyTableDiffIterator = $ this ->getMockBuilder ( '\SMW\SQLStore\CompositePropertyTableDiffIterator ' )
@@ -293,8 +293,8 @@ public function testhasChangeToNotifyAbout_ChangeNotificationForDistinctValue()
293293->method ( 'getObjectIds ' )
294294->will ( $ this ->returnValue ( $ idTable ) );
295295
296- $ this ->cachedPropertyValuesPrefetcher ->expects ( $ this ->any () )
297- ->method ( 'getPropertyValues ' )
296+ $ this ->propertySpecificationLookup ->expects ( $ this ->any () )
297+ ->method ( 'getSpecification ' )
298298->will ( $ this ->returnValue ( array ( new DIBlob ( 'DistinctText ' ) ) ) ); //Distinct value
299299
300300$ compositePropertyTableDiffIterator = $ this ->getMockBuilder ( '\SMW\SQLStore\CompositePropertyTableDiffIterator ' )
@@ -362,8 +362,8 @@ public function testhasChangeToNotifyAbout_ChangeNotificationForPageValue() {
362362->method ( 'getObjectIds ' )
363363->will ( $ this ->returnValue ( $ idTable ) );
364364
365- $ this ->cachedPropertyValuesPrefetcher ->expects ( $ this ->any () )
366- ->method ( 'getPropertyValues ' )
365+ $ this ->propertySpecificationLookup ->expects ( $ this ->any () )
366+ ->method ( 'getSpecification ' )
367367->will ( $ this ->returnValue ( array ( new DIBlob ( 'BAR ' ) ) ) ); //Distinct value
368368
369369$ compositePropertyTableDiffIterator = $ this ->getMockBuilder ( '\SMW\SQLStore\CompositePropertyTableDiffIterator ' )
@@ -461,8 +461,8 @@ public function testhasChangeToNotifyAbout_ChangeNotificationForSubobjectRelated
461461->with ( $ this ->equalTo ( $ dataItem ) )
462462->will ( $ this ->returnValue ( $ semanticData ) );
463463
464- $ this ->cachedPropertyValuesPrefetcher ->expects ( $ this ->any () )
465- ->method ( 'getPropertyValues ' )
464+ $ this ->propertySpecificationLookup ->expects ( $ this ->any () )
465+ ->method ( 'getSpecification ' )
466466->will ( $ this ->returnValue ( array () ) );
467467
468468$ compositePropertyTableDiffIterator = $ this ->getMockBuilder ( '\SMW\SQLStore\CompositePropertyTableDiffIterator ' )
0 commit comments