Skip to content
Snippets Groups Projects
Commit ce600795 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2016691 by damiankloip, LinL: Convert...

Issue #2016691 by damiankloip, LinL: Convert Drupal\serialization\Tests\SerializationTest to DrupalUnitTestBase.
parent 76179756
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -7,10 +7,13 @@
namespace Drupal\serialization\Tests;
use Drupal\simpletest\WebTestBase;
use Drupal\simpletest\DrupalUnitTestBase;
use Symfony\Component\Serializer\Exception\UnexpectedValueException;
class SerializationTest extends WebTestBase {
/**
* Tests generic registration of module provided normalizers and encoders.
*/
class SerializationTest extends DrupalUnitTestBase {
/**
* Modules to enable.
......@@ -56,6 +59,7 @@ public function testSerializerComponentRegistration() {
$this->fail('The serializer was expected to throw an exception for an unsupported format, but did not.');
}
catch (UnexpectedValueException $e) {
$this->pass('The serializer threw an exception for an unsupported format.');
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment