Fix some sdk methods for V15 request filter
This commit is contained in:
parent
2da7da0558
commit
041066520f
|
@ -14,12 +14,12 @@ class V15 extends Filter
|
|||
public function parse(array $content, string $model): array
|
||||
{
|
||||
switch ($model) {
|
||||
case 'account.logs':
|
||||
case 'account.listLogs':
|
||||
case 'databases.listLogs':
|
||||
case 'databases.listCollectionLogs':
|
||||
case 'databases.listDocumentLogs':
|
||||
case 'teams.listLogs':
|
||||
case 'users.getLogs':
|
||||
case 'users.listLogs':
|
||||
$content = $this->convertLimitAndOffset($content);
|
||||
break;
|
||||
case 'account.initials':
|
||||
|
|
|
@ -36,9 +36,9 @@ class V15Test extends TestCase
|
|||
/**
|
||||
* @dataProvider limitOffsetProvider
|
||||
*/
|
||||
public function testGetAccountLogs(array $content, array $expected): void
|
||||
public function testListAccountLogs(array $content, array $expected): void
|
||||
{
|
||||
$model = 'account.logs';
|
||||
$model = 'account.listLogs';
|
||||
|
||||
$result = $this->filter->parse($content, $model);
|
||||
|
||||
|
@ -692,9 +692,9 @@ class V15Test extends TestCase
|
|||
* @dataProvider cursorProvider
|
||||
* @dataProvider orderTypeProvider
|
||||
*/
|
||||
public function testGetTeamMemberships(array $content, array $expected): void
|
||||
public function testListTeamMemberships(array $content, array $expected): void
|
||||
{
|
||||
$model = 'teams.getMemberships';
|
||||
$model = 'teams.listMemberships';
|
||||
|
||||
$result = $this->filter->parse($content, $model);
|
||||
|
||||
|
@ -731,9 +731,9 @@ class V15Test extends TestCase
|
|||
/**
|
||||
* @dataProvider limitOffsetProvider
|
||||
*/
|
||||
public function testGetUserLogs(array $content, array $expected): void
|
||||
public function testListUserLogs(array $content, array $expected): void
|
||||
{
|
||||
$model = 'users.getLogs';
|
||||
$model = 'users.listLogs';
|
||||
|
||||
$result = $this->filter->parse($content, $model);
|
||||
|
||||
|
|
Loading…
Reference in a new issue