diff options
Diffstat (limited to 'tests/api_test.php')
-rw-r--r-- | tests/api_test.php | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/tests/api_test.php b/tests/api_test.php index 998db9e..941fdbd 100644 --- a/tests/api_test.php +++ b/tests/api_test.php @@ -230,17 +230,6 @@ final class local_webhooks_api_testcase extends advanced_testcase { foreach ($services as $service) { self::assertContains($service->id, $ids); - self::assertEquals($record->header, $service->header); - self::assertEquals($record->name, $service->name); - self::assertEquals($record->point, $service->point); - self::assertEquals($record->status, $service->status); - self::assertEquals($record->token, $service->token); - - self::assertInternalType('array', $service->events); - self::assertCount(count($record->events), $service->events); - foreach ($service->events as $event) { - self::assertContains($event, $record->events); - } } } @@ -272,7 +261,7 @@ final class local_webhooks_api_testcase extends advanced_testcase { } self::assertCount(1, api::get_services([ - 'name' => 'Example name #' . random_int(1, $total), + 'name' => 'Example name #' . random_int(5, $total), ])); $limit = intdiv($total, 2); |