Skip to content

Commit

Permalink
[CI] Fixed Tests and codestyle (#133)
Browse files Browse the repository at this point in the history
* [CI] Fixed Tests and codestyle

* Changed not bookmarked locations count as it different across product versions
  • Loading branch information
ViniTou authored Sep 10, 2024
1 parent 635df90 commit 9d59dc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/

namespace Ibexa\Tests\Bundle\Rest\Functional\SearchView\Criterion;

use Ibexa\Tests\Bundle\Rest\Functional\SearchView\SearchCriterionTestCase;
Expand Down Expand Up @@ -38,7 +39,7 @@ public function getCriteriaPayloads(): iterable
yield 'Not bookmarked locations' => [
'json',
$this->buildJsonCriterionQuery('"IsBookmarkedCriterion": false'),
11,
15, // <- This can differ between DXP versions.
];
}

Expand Down
5 changes: 4 additions & 1 deletion tests/lib/Server/Output/ValueObjectVisitor/RestUserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ public function testVisitWithoutEmbeddedVersion(): DOMDocument
protected function getBasicRestUser(): RestUser
{
return new RestUser(
new Values\User\User(),
new Values\User\User([
'login' => 'rest_user',
'email' => 'rest_user@ibexa.co',
]),
$this->getMockForAbstractClass(ContentType::class),
$this->getContentInfoStub(),
new Values\Content\Location(
Expand Down

0 comments on commit 9d59dc8

Please sign in to comment.