@@ -384,24 +384,6 @@ public function testGuidNormalization() {
384384 $ this ->assertEquals ( $ claim2 , $ claims ->getClaimWithGuid ( $ claim2UpperGuid ) );
385385 }
386386
387- public function testGetMainSnaks () {
388- $ claims = new Claims ( array (
389- $ this ->makeClaim ( new PropertyNoValueSnak ( new PropertyId ( 'P42 ' ) ) ),
390- $ this ->makeClaim ( new PropertySomeValueSnak ( new PropertyId ( 'P42 ' ) ) ),
391- $ this ->makeClaim ( new PropertyNoValueSnak ( new PropertyId ( 'P23 ' ) ) ),
392- $ this ->makeClaim ( new PropertyNoValueSnak ( new PropertyId ( 'P9000 ' ) ) ),
393- ) );
394-
395- $ snaks = $ claims ->getMainSnaks ();
396- $ this ->assertInternalType ( 'array ' , $ snaks );
397- $ this ->assertSameSize ( $ claims , $ snaks );
398-
399- foreach ( $ snaks as $ guid => $ snak ) {
400- $ this ->assertInstanceOf ( 'Wikibase\DataModel\Snak\Snak ' , $ snak );
401- $ this ->assertTrue ( $ claims ->hasClaimWithGuid ( $ guid ) );
402- }
403- }
404-
405387 public function testGetGuids () {
406388 $ claims = new Claims ( array (
407389 $ this ->makeClaim ( new PropertyNoValueSnak ( new PropertyId ( 'P42 ' ) ) ),
@@ -444,26 +426,6 @@ public function testGetHashes() {
444426 }
445427 }
446428
447- public function testGetClaimsForProperty () {
448- $ claims = new Claims ( array (
449- $ this ->makeClaim ( new PropertyNoValueSnak ( new PropertyId ( 'P42 ' ) ) ),
450- $ this ->makeClaim ( new PropertySomeValueSnak ( new PropertyId ( 'P42 ' ) ) ),
451- $ this ->makeClaim ( new PropertyNoValueSnak ( new PropertyId ( 'P23 ' ) ) ),
452- ) );
453-
454- $ matches = $ claims ->getClaimsForProperty ( new PropertyId ( 'P42 ' ) );
455- $ this ->assertInstanceOf ( 'Wikibase\DataModel\Claim\Claims ' , $ claims );
456- $ this ->assertSame ( 2 , $ matches ->count () );
457-
458- $ matches = $ claims ->getClaimsForProperty ( new PropertyId ( 'P23 ' ) );
459- $ this ->assertInstanceOf ( 'Wikibase\DataModel\Claim\Claims ' , $ claims );
460- $ this ->assertSame ( 1 , $ matches ->count () );
461-
462- $ matches = $ claims ->getClaimsForProperty ( new PropertyId ( 'P9000 ' ) );
463- $ this ->assertInstanceOf ( 'Wikibase\DataModel\Claim\Claims ' , $ claims );
464- $ this ->assertSame ( 0 , $ matches ->count () );
465- }
466-
467429 /**
468430 * Attempts to add Claims with no GUID set will fail.
469431 */
0 commit comments