Refactoring tests

This commit is contained in:
Gabriel Caruso
2017-12-06 14:33:46 -02:00
parent 81c2c17fd7
commit c378f6dfbf
9 changed files with 18 additions and 18 deletions

View File

@@ -103,7 +103,7 @@ class WebhookFunctionalTest extends TestCase
{
$result = WebhookEventType::subscribedEventTypes($webhook->getId(), $this->apiContext, $this->mockPayPalRestCall);
$this->assertNotNull($result);
$this->assertEquals(2, sizeof($result->getEventTypes()));
$this->assertCount(2, $result->getEventTypes());
return $result;
}