-
Notifications
You must be signed in to change notification settings - Fork 6
/
ParkingTestCase.php
42 lines (30 loc) · 1.19 KB
/
ParkingTestCase.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
namespace KazooTests\Applications\Callflow;
use \KazooTests\TestCase;
use \MakeBusy\Kazoo\Applications\Crossbar\TestAccount;
abstract class ParkingTestCase extends TestCase {
public static $a_device;
public static $b_device;
public static $c_device;
public static $realm;
const A_EXT = '4001';
const B_EXT = '4002';
const C_EXT = '4003';
const PARKING_SPOT_1 = '*3101';
const VALET = '*4';
const RETRIEVE = '*5';
protected static function system_configs() {
return [];
// return ["callflow.park"];
}
public static function setUpCase() {
parent::setUpCase();
self::$account->system_config("callflow.park/default")->fetch()->change(["default_ringback_timeout"], 5000);
self::$a_device = self::$account->createDevice("auth", true);
self::$a_device->createCallflow([self::A_EXT]);
self::$b_device = self::$account->createDevice("auth", true);
self::$b_device->createCallflow([self::B_EXT]);
self::$c_device = self::$account->createDevice("auth", true);
self::$c_device->createCallflow([self::C_EXT]);
}
}