@@ -19,6 +19,9 @@ |
||
| 19 | 19 | /** @var string */ |
| 20 | 20 | private $originalTokenType; |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param string $originalTokenType |
|
| 24 | + */ |
|
| 22 | 25 | public function __construct(UserInterface $user, $originalTokenType, $credentials, $providerKey, array $roles = []) |
| 23 | 26 | { |
| 24 | 27 | parent::__construct($user, $credentials, $providerKey, $roles); |
@@ -11,7 +11,6 @@ |
||
| 11 | 11 | use eZ\Publish\Core\MVC\Symfony\Security\InteractiveLoginToken; |
| 12 | 12 | use eZ\Publish\Core\MVC\Symfony\Security\UserInterface; |
| 13 | 13 | use PHPUnit\Framework\TestCase; |
| 14 | -use Symfony\Component\Security\Core\Role\Role; |
|
| 15 | 14 | |
| 16 | 15 | class InteractiveLoginTokenTest extends TestCase |
| 17 | 16 | { |
@@ -67,6 +67,10 @@ |
||
| 67 | 67 | /** @var \eZ\Publish\Core\MVC\Symfony\View\Configurator */ |
| 68 | 68 | private $viewConfigurator; |
| 69 | 69 | |
| 70 | + /** |
|
| 71 | + * @param string $viewBaseLayout |
|
| 72 | + * @param \PHPUnit\Framework\MockObject\MockObject $viewConfigurator |
|
| 73 | + */ |
|
| 70 | 74 | public function __construct( |
| 71 | 75 | Environment $templateEngine, |
| 72 | 76 | EventDispatcherInterface $eventDispatcher, |
@@ -44,7 +44,6 @@ |
||
| 44 | 44 | * |
| 45 | 45 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters. |
| 46 | 46 | * |
| 47 | - * @param string|array(string) $... Either a string with a logical expression name or an array with logical expressions. |
|
| 48 | 47 | * |
| 49 | 48 | * @return \eZ\Publish\Core\Persistence\Database\DeleteQuery |
| 50 | 49 | */ |
@@ -48,7 +48,6 @@ discard block |
||
| 48 | 48 | * |
| 49 | 49 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters.. |
| 50 | 50 | * |
| 51 | - * @param string|array(string) $... Either a string with a column name or an array of column names. |
|
| 52 | 51 | * |
| 53 | 52 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery returns a pointer to $this. |
| 54 | 53 | */ |
@@ -108,7 +107,6 @@ discard block |
||
| 108 | 107 | * |
| 109 | 108 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters.. |
| 110 | 109 | * |
| 111 | - * @param string|array(string) $... Either a string with a column name or an array of column names. |
|
| 112 | 110 | * |
| 113 | 111 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery returns a pointer to $this. |
| 114 | 112 | */ |
@@ -132,7 +130,6 @@ discard block |
||
| 132 | 130 | * |
| 133 | 131 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters. |
| 134 | 132 | * |
| 135 | - * @param string|array(string) $... Either a string with a table name or an array of table names. |
|
| 136 | 133 | * |
| 137 | 134 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery a pointer to $this |
| 138 | 135 | */ |
@@ -184,8 +181,6 @@ discard block |
||
| 184 | 181 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with inconsistent parameters or if |
| 185 | 182 | * invoked without preceding call to from(). |
| 186 | 183 | * |
| 187 | - * @param string $table2 ,... The table to join with, followed by either the |
|
| 188 | - * two join columns, or a join condition. |
|
| 189 | 184 | * |
| 190 | 185 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery |
| 191 | 186 | */ |
@@ -237,8 +232,6 @@ discard block |
||
| 237 | 232 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with inconsistent parameters or if |
| 238 | 233 | * invoked without preceding call to from(). |
| 239 | 234 | * |
| 240 | - * @param string $table2 ,... The table to join with, followed by either the |
|
| 241 | - * two join columns, or a join condition. |
|
| 242 | 235 | * |
| 243 | 236 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery |
| 244 | 237 | */ |
@@ -290,8 +283,6 @@ discard block |
||
| 290 | 283 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with inconsistent parameters or if |
| 291 | 284 | * invoked without preceding call to from(). |
| 292 | 285 | * |
| 293 | - * @param string $table2 ,... The table to join with, followed by either the |
|
| 294 | - * two join columns, or a join condition. |
|
| 295 | 286 | * |
| 296 | 287 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery |
| 297 | 288 | */ |
@@ -314,7 +305,6 @@ discard block |
||
| 314 | 305 | * |
| 315 | 306 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters. |
| 316 | 307 | * |
| 317 | - * @param string|array(string) $... Either a string with a logical expression name or an array with logical expressions. |
|
| 318 | 308 | * |
| 319 | 309 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery |
| 320 | 310 | */ |
@@ -378,7 +368,6 @@ discard block |
||
| 378 | 368 | * |
| 379 | 369 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters. |
| 380 | 370 | * |
| 381 | - * @param string $column a column name in the result set |
|
| 382 | 371 | * |
| 383 | 372 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery a pointer to $this |
| 384 | 373 | */ |
@@ -399,7 +388,6 @@ discard block |
||
| 399 | 388 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException |
| 400 | 389 | * if called with no parameters. |
| 401 | 390 | * |
| 402 | - * @param string|array(string) $... Either a string with a logical expression name or an array with logical expressions. |
|
| 403 | 391 | * |
| 404 | 392 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery a pointer to $this |
| 405 | 393 | */ |
@@ -55,7 +55,6 @@ |
||
| 55 | 55 | * |
| 56 | 56 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters. |
| 57 | 57 | * |
| 58 | - * @param string|array(string) $... Either a string with a logical expression name or an array with logical expressions. |
|
| 59 | 58 | * |
| 60 | 59 | * @return \eZ\Publish\Core\Persistence\Database\UpdateQuery |
| 61 | 60 | */ |
@@ -330,7 +330,7 @@ discard block |
||
| 330 | 330 | * @param \eZ\Publish\SPI\Persistence\Content\Type $type |
| 331 | 331 | * @param mixed|null $typeId |
| 332 | 332 | * |
| 333 | - * @return mixed Type ID |
|
| 333 | + * @return integer Type ID |
|
| 334 | 334 | */ |
| 335 | 335 | public function insertType(Type $type, $typeId = null) |
| 336 | 336 | { |
@@ -425,8 +425,8 @@ discard block |
||
| 425 | 425 | /** |
| 426 | 426 | * Insert assignment of $typeId to $groupId. |
| 427 | 427 | * |
| 428 | - * @param mixed $groupId |
|
| 429 | - * @param mixed $typeId |
|
| 428 | + * @param integer $groupId |
|
| 429 | + * @param integer $typeId |
|
| 430 | 430 | * @param int $status |
| 431 | 431 | */ |
| 432 | 432 | public function insertGroupAssignment($groupId, $typeId, $status) |
@@ -457,8 +457,8 @@ discard block |
||
| 457 | 457 | /** |
| 458 | 458 | * Deletes a group assignments for a Type. |
| 459 | 459 | * |
| 460 | - * @param mixed $groupId |
|
| 461 | - * @param mixed $typeId |
|
| 460 | + * @param integer $groupId |
|
| 461 | + * @param integer $typeId |
|
| 462 | 462 | * @param int $status |
| 463 | 463 | */ |
| 464 | 464 | public function deleteGroupAssignment($groupId, $typeId, $status) |
@@ -507,7 +507,7 @@ discard block |
||
| 507 | 507 | /** |
| 508 | 508 | * Loads data about Group with $identifier. |
| 509 | 509 | * |
| 510 | - * @param mixed $identifier |
|
| 510 | + * @param string $identifier |
|
| 511 | 511 | * |
| 512 | 512 | * @return string[][] |
| 513 | 513 | */ |
@@ -566,7 +566,7 @@ discard block |
||
| 566 | 566 | /** |
| 567 | 567 | * Loads data for all Types in $status in $groupId. |
| 568 | 568 | * |
| 569 | - * @param mixed $groupId |
|
| 569 | + * @param integer $groupId |
|
| 570 | 570 | * @param int $status |
| 571 | 571 | * |
| 572 | 572 | * @return string[][] |
@@ -587,12 +587,12 @@ discard block |
||
| 587 | 587 | /** |
| 588 | 588 | * Inserts a $fieldDefinition for $typeId. |
| 589 | 589 | * |
| 590 | - * @param mixed $typeId |
|
| 590 | + * @param integer $typeId |
|
| 591 | 591 | * @param int $status |
| 592 | 592 | * @param \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition |
| 593 | 593 | * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition $storageFieldDef |
| 594 | 594 | * |
| 595 | - * @return mixed Field definition ID |
|
| 595 | + * @return integer Field definition ID |
|
| 596 | 596 | */ |
| 597 | 597 | public function insertFieldDefinition( |
| 598 | 598 | $typeId, |
@@ -808,9 +808,9 @@ discard block |
||
| 808 | 808 | /** |
| 809 | 809 | * Deletes a field definition. |
| 810 | 810 | * |
| 811 | - * @param mixed $typeId |
|
| 811 | + * @param integer $typeId |
|
| 812 | 812 | * @param int $status |
| 813 | - * @param mixed $fieldDefinitionId |
|
| 813 | + * @param integer $fieldDefinitionId |
|
| 814 | 814 | */ |
| 815 | 815 | public function deleteFieldDefinition($typeId, $status, $fieldDefinitionId) |
| 816 | 816 | { |
@@ -851,7 +851,7 @@ discard block |
||
| 851 | 851 | /** |
| 852 | 852 | * Updates a $fieldDefinition for $typeId. |
| 853 | 853 | * |
| 854 | - * @param mixed $typeId |
|
| 854 | + * @param integer $typeId |
|
| 855 | 855 | * @param int $status |
| 856 | 856 | * @param \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition |
| 857 | 857 | * @param \eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition $storageFieldDef |
@@ -994,9 +994,8 @@ discard block |
||
| 994 | 994 | /** |
| 995 | 995 | * Update a type with $updateStruct. |
| 996 | 996 | * |
| 997 | - * @param mixed $typeId |
|
| 997 | + * @param integer $typeId |
|
| 998 | 998 | * @param int $status |
| 999 | - * @param \eZ\Publish\SPI\Persistence\Content\Type\UpdateStruct $updateStruct |
|
| 1000 | 999 | */ |
| 1001 | 1000 | public function updateType($typeId, $status, Type $type) |
| 1002 | 1001 | { |
@@ -1039,7 +1038,7 @@ discard block |
||
| 1039 | 1038 | /** |
| 1040 | 1039 | * Loads an array with data about $typeId in $status. |
| 1041 | 1040 | * |
| 1042 | - * @param mixed $typeId |
|
| 1041 | + * @param integer $typeId |
|
| 1043 | 1042 | * @param int $status |
| 1044 | 1043 | * |
| 1045 | 1044 | * @return array Data rows. |
@@ -1081,7 +1080,7 @@ discard block |
||
| 1081 | 1080 | * Loads an array with data about the type referred to by $remoteId in |
| 1082 | 1081 | * $status. |
| 1083 | 1082 | * |
| 1084 | - * @param mixed $remoteId |
|
| 1083 | + * @param string $remoteId |
|
| 1085 | 1084 | * @param int $status |
| 1086 | 1085 | * |
| 1087 | 1086 | * @return array (int=>array(string=>mixed)) Data rows. |
@@ -44,7 +44,6 @@ |
||
| 44 | 44 | * |
| 45 | 45 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters. |
| 46 | 46 | * |
| 47 | - * @param string|array(string) $... Either a string with a logical expression name or an array with logical expressions. |
|
| 48 | 47 | * |
| 49 | 48 | * @return \eZ\Publish\Core\Persistence\Database\DeleteQuery |
| 50 | 49 | */ |
@@ -48,7 +48,6 @@ discard block |
||
| 48 | 48 | * |
| 49 | 49 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters.. |
| 50 | 50 | * |
| 51 | - * @param string|array(string) $... Either a string with a column name or an array of column names. |
|
| 52 | 51 | * |
| 53 | 52 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery returns a pointer to $this. |
| 54 | 53 | */ |
@@ -108,7 +107,6 @@ discard block |
||
| 108 | 107 | * |
| 109 | 108 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters.. |
| 110 | 109 | * |
| 111 | - * @param string|array(string) $... Either a string with a column name or an array of column names. |
|
| 112 | 110 | * |
| 113 | 111 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery returns a pointer to $this. |
| 114 | 112 | */ |
@@ -132,7 +130,6 @@ discard block |
||
| 132 | 130 | * |
| 133 | 131 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters. |
| 134 | 132 | * |
| 135 | - * @param string|array(string) $... Either a string with a table name or an array of table names. |
|
| 136 | 133 | * |
| 137 | 134 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery a pointer to $this |
| 138 | 135 | */ |
@@ -184,8 +181,6 @@ discard block |
||
| 184 | 181 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with inconsistent parameters or if |
| 185 | 182 | * invoked without preceding call to from(). |
| 186 | 183 | * |
| 187 | - * @param string $table2 ,... The table to join with, followed by either the |
|
| 188 | - * two join columns, or a join condition. |
|
| 189 | 184 | * |
| 190 | 185 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery |
| 191 | 186 | */ |
@@ -237,8 +232,6 @@ discard block |
||
| 237 | 232 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with inconsistent parameters or if |
| 238 | 233 | * invoked without preceding call to from(). |
| 239 | 234 | * |
| 240 | - * @param string $table2 ,... The table to join with, followed by either the |
|
| 241 | - * two join columns, or a join condition. |
|
| 242 | 235 | * |
| 243 | 236 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery |
| 244 | 237 | */ |
@@ -290,8 +283,6 @@ discard block |
||
| 290 | 283 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with inconsistent parameters or if |
| 291 | 284 | * invoked without preceding call to from(). |
| 292 | 285 | * |
| 293 | - * @param string $table2 ,... The table to join with, followed by either the |
|
| 294 | - * two join columns, or a join condition. |
|
| 295 | 286 | * |
| 296 | 287 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery |
| 297 | 288 | */ |
@@ -314,7 +305,6 @@ discard block |
||
| 314 | 305 | * |
| 315 | 306 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters. |
| 316 | 307 | * |
| 317 | - * @param string|array(string) $... Either a string with a logical expression name or an array with logical expressions. |
|
| 318 | 308 | * |
| 319 | 309 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery |
| 320 | 310 | */ |
@@ -378,7 +368,6 @@ discard block |
||
| 378 | 368 | * |
| 379 | 369 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException if called with no parameters. |
| 380 | 370 | * |
| 381 | - * @param string $column a column name in the result set |
|
| 382 | 371 | * |
| 383 | 372 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery a pointer to $this |
| 384 | 373 | */ |
@@ -399,7 +388,6 @@ discard block |
||
| 399 | 388 | * @throws \eZ\Publish\Core\Persistence\Database\QueryException |
| 400 | 389 | * if called with no parameters. |
| 401 | 390 | * |
| 402 | - * @param string|array(string) $... Either a string with a logical expression name or an array with logical expressions. |
|
| 403 | 391 | * |
| 404 | 392 | * @return \eZ\Publish\Core\Persistence\Database\SelectQuery a pointer to $this |
| 405 | 393 | */ |