public function testMatchedObjects()
 {
     $this->createData();
     $inspector = new \Concrete\Core\Backup\ContentImporter\ValueInspector\ValueInspector('{ccm:export:page:/page-3}');
     $o = $inspector->getMatchedItem();
     $this->assertInstanceOf('\\Concrete\\Core\\Page\\Page', $o->getContentObject());
     $this->assertEquals('Page 3', $o->getContentObject()->getCollectionName());
     $inspector = new \Concrete\Core\Backup\ContentImporter\ValueInspector\ValueInspector('{ccm:export:pagefeed:blog}');
     $o = $inspector->getMatchedItem();
     $this->assertInstanceOf('\\Concrete\\Core\\Page\\Feed', $o->getContentObject());
     $this->assertEquals(1, $o->getContentObject()->getID());
     $this->assertEquals('blog', $o->getContentObject()->getHandle());
 }
    public function testMatchedContentFilePageTypePageFeed()
    {
        $content = <<<EOL
        <p>Here is a link to an <a href="{ccm:export:pagefeed:blog}">rss feed</a>. We're also linking to a
        <a href="{ccm:export:file:filename1.jpg}">couple</a> of <A href="{ccm:export:file:filename2.JPG}">files.</a>.
        Finally, we're also going to link to a pagetype here: {ccm:export:pagetype:blog_entry}.
EOL;
        $inspector = new \Concrete\Core\Backup\ContentImporter\ValueInspector\ValueInspector($content);
        $items = $inspector->getMatchedItems();
        $this->assertEquals(4, count($items));
        $this->assertEquals($items[0]->getReference(), 'filename1.jpg');
        $this->assertEquals($items[1]->getReference(), 'filename2.JPG');
        $this->assertEquals($items[2]->getReference(), 'blog_entry');
        $this->assertEquals($items[3]->getReference(), 'blog');
        $this->assertInstanceOf('\\Concrete\\Core\\Backup\\ContentImporter\\ValueInspector\\Item\\FileItem', $items[0]);
        $this->assertInstanceOf('\\Concrete\\Core\\Backup\\ContentImporter\\ValueInspector\\Item\\FileItem', $items[1]);
        $this->assertInstanceOf('\\Concrete\\Core\\Backup\\ContentImporter\\ValueInspector\\Item\\PageTypeItem', $items[2]);
        $this->assertInstanceOf('\\Concrete\\Core\\Backup\\ContentImporter\\ValueInspector\\Item\\PageFeedItem', $items[3]);
    }