File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -11,11 +11,15 @@ class GeneralInfo extends \PleskX\Api\Struct
11
11
/** @var string */
12
12
public $ guid ;
13
13
14
+ /** @var integer */
15
+ public $ realSize ;
16
+
14
17
public function __construct ($ apiResponse )
15
18
{
16
19
$ this ->_initScalarProperties ($ apiResponse , [
17
20
'name ' ,
18
21
'guid ' ,
22
+ 'real_size ' ,
19
23
]);
20
24
}
21
25
}
Original file line number Diff line number Diff line change @@ -142,6 +142,8 @@ public function testGet()
142
142
$ webspace = static ::_createWebspace ();
143
143
$ webspaceInfo = static ::$ _client ->webspace ()->get ('id ' , $ webspace ->id );
144
144
145
- $ this ->assertInstanceOf (\PleskX \Api \Struct \Webspace \GeneralInfo::class, $ webspaceInfo );
145
+ $ this ->assertNotEmpty ($ webspaceInfo ->name );
146
+ $ this ->assertEquals (0 , $ webspaceInfo ->realSize );
147
+
146
148
}
147
149
}
You can’t perform that action at this time.
0 commit comments