Skip to content

Commit

Permalink
add missing unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
cjprinse-etrias committed Apr 23, 2018
1 parent 9054057 commit 164d1a5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/DBAL/JmsJsonTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,32 @@ public function shouldConvertToDatabaseValueUsingSerializer()
);
}

/**
* @test
*/
public function shouldNotConvertNullToDatabaseValue()
{
$this->initializeJmsJsonType($this->serializer, $this->typeResolver);

$value = null;
$databaseValue = null;

$this->assertEquals($value, $this->type->convertToDatabaseValue($databaseValue, $this->platform));
}

/**
* @test
*/
public function shouldNotConvertNullToPhpValue()
{
$this->initializeJmsJsonType($this->serializer, $this->typeResolver);

$value = null;
$databaseValue = null;

$this->assertEquals($value, $this->type->convertToPHPValue($databaseValue, $this->platform));
}

/**
* @test
*/
Expand Down

0 comments on commit 164d1a5

Please sign in to comment.