Added external function delete service
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user