File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 6
6
class GeneralInfo extends \PleskX \Api \Struct
7
7
{
8
8
/** @var string */
9
- public $ crDate ;
9
+ public $ creationDate ;
10
10
11
11
/** @var string */
12
12
public $ name ;
@@ -38,7 +38,7 @@ class GeneralInfo extends \PleskX\Api\Struct
38
38
public function __construct ($ apiResponse )
39
39
{
40
40
$ this ->_initScalarProperties ($ apiResponse , [
41
- 'cr_date ' ,
41
+ [ 'cr_date ' => ' creationDate ' ] ,
42
42
'name ' ,
43
43
'ascii-name ' ,
44
44
'status ' ,
Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ public function testGet()
61
61
62
62
$ siteInfo = static ::$ _client ->site ()->get ('id ' , $ site ->id );
63
63
$ this ->assertEquals ('addon.dom ' , $ siteInfo ->name );
64
+ $ this ->assertMatchesRegularExpression ("/^\d{4}-\d{2}-\d{2}$/ " , $ siteInfo ->creationDate );
65
+ $ this ->assertEquals (36 , strlen ($ siteInfo ->guid ));
64
66
65
67
static ::$ _client ->site ()->delete ('id ' , $ site ->id );
66
68
}
You can’t perform that action at this time.
0 commit comments