-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5775a06
commit 1999987
Showing
3 changed files
with
99 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace SupportPal\ApiClient\Tests; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
use SupportPal\ApiClient\SupportPal; | ||
|
||
use function dd; | ||
|
||
class AppTestCase extends TestCase | ||
{ | ||
public function testApps() | ||
{ | ||
$sp = new SupportPal( | ||
'http://localhost:8080/', | ||
'xp6BhmJU2WH6v22ATd=5cSDcz785yUte', | ||
['whmcs' => 1], | ||
['whmcs' => 1] | ||
); | ||
|
||
dd($sp->getCoreApi()->getSettings()); | ||
// $createTicket = new CreateTicket; | ||
// $createTicket->fill( | ||
// [ | ||
// 'department' => 1, | ||
// 'status' => 1, | ||
// 'priority' => 2, | ||
// 'subject' => 'subject', | ||
// 'text' => 'text', | ||
// 'name' => 'test', | ||
// 'user_email' => 'test@email.com' | ||
// ] | ||
// ); | ||
// | ||
// $createUser = (new CreateUser)->fill(['email' => 'newtestnametest@test.com']); | ||
// | ||
// /** @var User $user */ | ||
// $user = $sp->getApi()->getUsers(['start' => 50])->filter(function (User $user) { | ||
// return $user->getId() === 62; | ||
// })->first(); | ||
// | ||
// $updated = $sp->getApi()->updateUser($user, ['email' => 'hello@email.com']); | ||
// dd($updated); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters