@@ -629,6 +629,34 @@ public function it_can_migrate_bards_with_no_sets()
629629 $ this ->assertEquals ($ expected , $ content );
630630 }
631631
632+ /** @test */
633+ public function it_can_migrate_link_it_fields ()
634+ {
635+ $ content = $ this
636+ ->setFields ([
637+ 'url ' => ['type ' => 'link_it ' ],
638+ 'asset ' => ['type ' => 'link_it ' , 'containers ' => ['main ' ]],
639+ 'term ' => ['type ' => 'link_it ' , 'taxonomies ' => ['tags ' ]],
640+ 'page ' => ['type ' => 'link_it ' ],
641+ ])
642+ ->migrateContent ([
643+ 'url ' => ['type ' => 'url ' , 'url ' => 'http://example.com ' ],
644+ 'asset ' => ['type ' => 'asset ' , 'asset ' => ['/assets/img/coffee-mug.jpg ' ], 'container ' => 'main ' ],
645+ 'term ' => ['type ' => 'term ' , 'term ' => ['tags/coffee ' ], 'taxonomy ' => 'tags ' ],
646+ 'page ' => ['type ' => 'page ' , 'page ' => ['abc ' ]],
647+ ]);
648+
649+ $ expected = [
650+ 'url ' => ['type ' => 'url ' , 'url ' => 'http://example.com ' ],
651+ 'asset ' => ['type ' => 'asset ' , 'asset ' => ['main::img/coffee-mug.jpg ' ], 'container ' => 'main ' ],
652+ 'term ' => ['type ' => 'term ' , 'term ' => ['tags::coffee ' ], 'taxonomy ' => 'tags ' ],
653+ 'page ' => ['type ' => 'entry ' , 'entry ' => ['abc ' ]],
654+ 'blueprint ' => 'speaker ' ,
655+ ];
656+
657+ $ this ->assertEquals ($ expected , $ content );
658+ }
659+
632660 /** @test */
633661 public function it_can_migrate_custom_layout ()
634662 {
0 commit comments