Skip to content

Commit 996b97e

Browse files
committed
Update WebRequest
1 parent 19c4e50 commit 996b97e

File tree

4 files changed

+11
-19
lines changed

4 files changed

+11
-19
lines changed

src/Interfaces/UsersInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use ByJG\Authenticate\Definition\UserPropertiesDefinition;
88
use ByJG\Authenticate\Model\UserModel;
99
use ByJG\Authenticate\Model\UserPropertiesModel;
10-
use ByJG\Util\JwtWrapper;
10+
use ByJG\JwtWrapper\JwtWrapper;
1111

1212
/**
1313
* IUsersBase is an Interface to Store and Retrive USERS from an AnyDataset or a DBDataset structure.

src/UsersBase.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
use ByJG\Authenticate\Interfaces\UsersInterface;
1313
use ByJG\Authenticate\Model\UserModel;
1414
use ByJG\Authenticate\Model\UserPropertiesModel;
15-
use ByJG\Util\JwtWrapper;
16-
use ByJG\Util\JwtWrapperException;
17-
use InvalidArgumentException;
15+
use ByJG\JwtWrapper\JwtWrapper;
16+
use ByJG\JwtWrapper\JwtWrapperException;
1817

1918
/**
2019
* Base implementation to search and handle users in XMLNuke.

tests/UsersAnyDatasetByUsernameTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
use ByJG\Authenticate\Model\UserModel;
1111
use ByJG\Authenticate\UsersAnyDataset;
1212
use ByJG\Authenticate\UsersBase;
13-
use ByJG\Util\JwtHashHmacSecret;
14-
use ByJG\Util\JwtWrapper;
13+
use ByJG\JwtWrapper\JwtHashHmacSecret;
14+
use ByJG\JwtWrapper\JwtWrapper;
1515
use PHPUnit\Framework\TestCase;
1616

1717
class UsersAnyDatasetByUsernameTest extends TestCase

tests/UsersDBDatasetDefinitionTest.php

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,18 @@
22

33
namespace Tests;
44

5+
use ByJG\AnyDataset\Core\Exception\DatabaseException;
56
use ByJG\AnyDataset\Db\Factory;
6-
use ByJG\AnyDataset\Exception\DatabaseException;
7-
use ByJG\AnyDataset\Exception\NotFoundException;
8-
use ByJG\AnyDataset\Exception\NotImplementedException;
97
use ByJG\Authenticate\Definition\UserDefinition;
108
use ByJG\Authenticate\Definition\UserPropertiesDefinition;
119
use ByJG\Authenticate\Exception\UserExistsException;
1210
use ByJG\Authenticate\Model\UserModel;
1311
use ByJG\Authenticate\UsersDBDataset;
14-
use ByJG\MicroOrm\Exception\InvalidArgumentException;
1512
use ByJG\MicroOrm\Exception\OrmBeforeInvalidException;
1613
use ByJG\MicroOrm\Exception\OrmInvalidFieldsException;
1714
use ByJG\MicroOrm\Exception\OrmModelInvalidException;
18-
use ByJG\Util\Exception\XmlUtilException;
1915
use Exception;
16+
use ReflectionException;
2017

2118
class MyUserModel extends UserModel
2219
{
@@ -45,13 +42,11 @@ class UsersDBDatasetDefinitionTest extends UsersDBDatasetByUsernameTest
4542

4643
/**
4744
* @param $loginField
48-
* @throws UserExistsException
49-
* @throws \ByJG\AnyDataset\Core\Exception\DatabaseException
50-
* @throws InvalidArgumentException
5145
* @throws OrmBeforeInvalidException
5246
* @throws OrmInvalidFieldsException
5347
* @throws OrmModelInvalidException
54-
* @throws \ByJG\Serializer\Exception\InvalidArgumentException
48+
* @throws UserExistsException
49+
* @throws ReflectionException
5550
*/
5651
public function __setUp($loginField)
5752
{
@@ -112,13 +107,11 @@ public function __setUp($loginField)
112107
}
113108

114109
/**
115-
* @throws InvalidArgumentException
116110
* @throws OrmBeforeInvalidException
117111
* @throws OrmInvalidFieldsException
118112
* @throws OrmModelInvalidException
113+
* @throws ReflectionException
119114
* @throws UserExistsException
120-
* @throws \ByJG\AnyDataset\Core\Exception\DatabaseException
121-
* @throws \ByJG\Serializer\Exception\InvalidArgumentException
122115
*/
123116
public function setUp(): void
124117
{
@@ -127,7 +120,7 @@ public function setUp(): void
127120

128121
/**
129122
* @throws UserExistsException
130-
* @throws \ByJG\AnyDataset\Core\Exception\DatabaseException
123+
* @throws DatabaseException
131124
* @throws \ByJG\Serializer\Exception\InvalidArgumentException
132125
*/
133126
public function testAddUser()

0 commit comments

Comments
 (0)