Skip to content
Snippets Groups Projects

Issue #3100732: Allow specifying `meta` data on JSON:API objects

Closed Björn Brala requested to merge issue/drupal-3100732:3100732-allow-specifying-meta into 10.1.x
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
  • 4d2cc81d
    Issue #3298923 by andypost, Berdir: Fix... · 4d2cc81d
    Alex Pott authored
    Issue #3298923 by andypost, Berdir: Fix ProtectedUserFieldConstraintValidatorTest to not trigger deprecations on PHP 8.2
    
    (cherry picked from commit 5433842c)
@@ -3,6 +3,7 @@
namespace Drupal\Tests\user\Unit\Plugin\Validation\Constraint;
use Drupal\Tests\UnitTestCase;
use Drupal\user\Entity\User;
use Drupal\user\Plugin\Validation\Constraint\ProtectedUserFieldConstraint;
use Drupal\user\Plugin\Validation\Constraint\ProtectedUserFieldConstraintValidator;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
@@ -87,7 +88,7 @@ public function providerTestValidate() {
// Case 3: Account flagged to skip protected user should be ignored.
$field_definition = $this->createMock('Drupal\Core\Field\FieldDefinitionInterface');
$account = $this->createMock('Drupal\user\UserInterface');
$account = $this->createMock(User::class);
$account->_skipProtectedUserFieldConstraint = TRUE;
$items = $this->createMock('Drupal\Core\Field\FieldItemListInterface');
$items->expects($this->once())
Loading