Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IonBazan committed May 11, 2022
1 parent 500f2ad commit 21f0c9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion tests/Doctrine/ODM/MongoDB/Tests/BaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Doctrine\ODM\MongoDB\Tests;

use ArrayAccess;
use Doctrine\ODM\MongoDB\Configuration;
use Doctrine\ODM\MongoDB\DocumentManager;
use Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver;
Expand Down Expand Up @@ -91,9 +92,12 @@ protected function getConfiguration(): Configuration
* This method should be dropped, as the checks run here are a subset of what
* the original assertion checked.
*
* @param array|ArrayAccess $subset
* @param array|ArrayAccess $array
*
* @deprecated
*/
public static function assertArraySubset(array $subset, array $array, bool $checkForObjectIdentity = false, string $message = ''): void
public static function assertArraySubset($subset, $array, bool $checkForObjectIdentity = false, string $message = ''): void
{
foreach ($subset as $key => $value) {
self::assertArrayHasKey($key, $array, $message);
Expand Down
2 changes: 1 addition & 1 deletion tests/Doctrine/ODM/MongoDB/Tests/Functional/EnumTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function testQueryWithMappedField(): void
public function testQueryWithMappedFieldAndEnumValue(): void
{
$qb = $this->dm->createQueryBuilder(Card::class)
->field('suit')->equals(Suit::Spades->value)
->field('suit')->equals('S') // Suit::Spades->value
->field('nullableSuit')->in(['H', 'D']);

$this->assertSame([
Expand Down

0 comments on commit 21f0c9e

Please sign in to comment.