test: fix serialized object fixtures
This commit is contained in:
@@ -95,14 +95,14 @@ class MetadataUrlTransformerTest extends TestCase {
|
||||
|
||||
public function test_it_leaves_serialized_objects_unchanged(): void {
|
||||
$transformer = new MetadataUrlTransformer( new UrlTransformer() );
|
||||
$value = 'O:8:"stdClass":1:{s:3:"url";s:28:"https://example.test/inside";}';
|
||||
$value = 'O:8:"stdClass":1:{s:3:"url";s:27:"https://example.test/inside";}';
|
||||
|
||||
self::assertSame( $value, $transformer->transformValue( $value, $this->mappings() ) );
|
||||
}
|
||||
|
||||
public function test_it_leaves_serialized_payloads_with_nested_objects_unchanged(): void {
|
||||
$transformer = new MetadataUrlTransformer( new UrlTransformer() );
|
||||
$value = 'a:2:{s:3:"url";s:28:"https://example.test/inside";s:6:"object";O:8:"stdClass":0:{}}';
|
||||
$value = 'a:2:{s:3:"url";s:27:"https://example.test/inside";s:6:"object";O:8:"stdClass":0:{}}';
|
||||
|
||||
self::assertSame( $value, $transformer->transformValue( $value, $this->mappings() ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user