From ce600795eaacad2ef82d1d76fe0fac4d04900442 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Tue, 9 Jul 2013 23:46:21 +0100 Subject: [PATCH] Issue #2016691 by damiankloip, LinL: Convert Drupal\serialization\Tests\SerializationTest to DrupalUnitTestBase. --- .../lib/Drupal/serialization/Tests/SerializationTest.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/modules/serialization/lib/Drupal/serialization/Tests/SerializationTest.php b/core/modules/serialization/lib/Drupal/serialization/Tests/SerializationTest.php index 9dee10a5109d..10c500c78478 100644 --- a/core/modules/serialization/lib/Drupal/serialization/Tests/SerializationTest.php +++ b/core/modules/serialization/lib/Drupal/serialization/Tests/SerializationTest.php @@ -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.'); } } } -- GitLab