Skip to content

Commit 23c66aa

Browse files
committed
Merge branch '2.1'
2 parents 95ff67d + 17ab9f5 commit 23c66aa

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tests/Api/FilterLocatorTraitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function testSetFilterLocatorWithNullAndNullAllowed()
5353
$filterLocatorTraitImpl = $this->getFilterLocatorTraitImpl();
5454
$filterLocatorTraitImpl->setFilterLocator(null, true);
5555

56-
$this->assertEquals(null, $filterLocatorTraitImpl->getFilterLocator());
56+
$this->assertNull($filterLocatorTraitImpl->getFilterLocator());
5757
}
5858

5959
/**

tests/Fixtures/TestBundle/Entity/DummyProduct.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function setRelatedProducts(Collection $relatedProducts)
114114
$this->relatedProducts = $relatedProducts;
115115
}
116116

117-
public function addRelatedProduct(DummyProduct $relatedProduct)
117+
public function addRelatedProduct(self $relatedProduct)
118118
{
119119
$this->relatedProducts->add($relatedProduct);
120120
$relatedProduct->setParent($this);
@@ -125,7 +125,7 @@ public function getParent()
125125
return $this->parent;
126126
}
127127

128-
public function setParent(DummyProduct $product)
128+
public function setParent(self $product)
129129
{
130130
$this->parent = $product;
131131
}

tests/Swagger/Serializer/DocumentationNormalizerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,9 +1207,9 @@ public function testSupports()
12071207

12081208
$documentation = new Documentation(new ResourceNameCollection([Dummy::class]), 'Test API', 'This is a test API.', '1.2.3', ['jsonld' => ['application/ld+json']]);
12091209

1210-
$this->assertEquals(true, $normalizer->supportsNormalization($documentation, 'json'));
1211-
$this->assertEquals(false, $normalizer->supportsNormalization($documentation));
1212-
$this->assertEquals(false, $normalizer->supportsNormalization(new Dummy(), 'json'));
1210+
$this->assertTrue($normalizer->supportsNormalization($documentation, 'json'));
1211+
$this->assertFalse($normalizer->supportsNormalization($documentation));
1212+
$this->assertFalse($normalizer->supportsNormalization(new Dummy(), 'json'));
12131213
}
12141214

12151215
public function testNoOperations()

0 commit comments

Comments
 (0)