28 lines
542 B
PHP
28 lines
542 B
PHP
<?php
|
|
|
|
namespace Functional;
|
|
|
|
class Api_Admin_UsersCest extends CestAbstract
|
|
{
|
|
/**
|
|
* @before setupComplete
|
|
* @before login
|
|
*/
|
|
public function manageUsers(\FunctionalTester $I): void
|
|
{
|
|
$I->wantTo('Manage users via API.');
|
|
|
|
$this->testCrudApi(
|
|
$I,
|
|
'/api/admin/users',
|
|
[
|
|
'name' => 'Test User',
|
|
'email' => 'test@example.com',
|
|
],
|
|
[
|
|
'name' => 'Test User Renamed',
|
|
]
|
|
);
|
|
}
|
|
}
|