Added external function delete service

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
2019-05-11 00:17:20 +04:00
parent 6b18cffc97
commit ed0ce52060
3 changed files with 95 additions and 13 deletions

View File

@ -122,10 +122,10 @@ final class local_webhooks_api_testcase extends advanced_testcase {
self::assertCount(0, $DB->get_records(LW_TABLE_EVENTS));
self::assertCount(0, $DB->get_records(LW_TABLE_SERVICES));
// Testing correct delete record of the record's list.
$ids = [];
$total = random_int(5, 20);
// Testing correct delete record of the record's list.
for ($i = 0; $i < $total; $i++) {
$record = self::get_random_record();
$ids[] = api::add_service($record);