File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -22,4 +22,14 @@ public function create($properties)
22
22
$ response = $ this ->_client ->request ($ packet );
23
23
return new Struct \Info ($ response );
24
24
}
25
+
26
+ /**
27
+ * @param string $field
28
+ * @param integer|string $value
29
+ * @return bool
30
+ */
31
+ public function delete ($ field , $ value )
32
+ {
33
+ return $ this ->_delete ($ field , $ value );
34
+ }
25
35
}
Original file line number Diff line number Diff line change @@ -43,4 +43,15 @@ public function testCreate()
43
43
44
44
$ this ->_client ->webspace ()->delete ('id ' , $ webspace ->id );
45
45
}
46
+
47
+ public function testDelete ()
48
+ {
49
+ $ webspaceName = 'example.tld ' ;
50
+ $ webspace = $ this ->_createWebspace ($ webspaceName );
51
+ $ subdomain = $ this ->_createSubdomain ('sub ' , $ webspaceName );
52
+
53
+ $ result = $ this ->_client ->subdomain ()->delete ('id ' , $ subdomain ->id );
54
+ $ this ->assertTrue ($ result );
55
+ $ this ->_client ->webspace ()->delete ('id ' , $ webspace ->id );
56
+ }
46
57
}
You can’t perform that action at this time.
0 commit comments